mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 09:36:58 +02:00
normalize function return and comments on exported type
This commit is contained in:
parent
30fc20fa38
commit
b318f666ba
@ -76,6 +76,7 @@ func SameEndpoints(a, b []*endpoint.Endpoint) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// SameEndpointLabels verifies that labels of the two slices of endpoints are the same
|
||||
func SameEndpointLabels(a, b []*endpoint.Endpoint) bool {
|
||||
if len(a) != len(b) {
|
||||
return false
|
||||
|
@ -370,9 +370,8 @@ func testAzureApplyChangesInternal(t *testing.T, dryRun bool, client RecordSetsC
|
||||
result := results[0]
|
||||
results = nil
|
||||
return result, nil
|
||||
} else {
|
||||
return dns.ZoneListResult{}, nil
|
||||
}
|
||||
return dns.ZoneListResult{}, nil
|
||||
})
|
||||
mockZoneClientIterator := dns.NewZoneListResultIterator(mockZoneListResultPage)
|
||||
|
||||
|
@ -304,7 +304,7 @@ func (p *TransIPProvider) dnsEntriesAreEqual(a, b transip.DNSEntries) bool {
|
||||
continue
|
||||
}
|
||||
|
||||
match += 1
|
||||
match++
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -38,9 +38,9 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
// The annotation used for determining if an ALB ingress is dualstack
|
||||
// ALBDualstackAnnotationKey is the annotation used for determining if an ALB ingress is dualstack
|
||||
ALBDualstackAnnotationKey = "alb.ingress.kubernetes.io/ip-address-type"
|
||||
// The value of the ALB dualstack annotation that indicates it is dualstack
|
||||
// ALBDualstackAnnotationValue is the value of the ALB dualstack annotation that indicates it is dualstack
|
||||
ALBDualstackAnnotationValue = "dualstack"
|
||||
)
|
||||
|
||||
|
@ -53,7 +53,7 @@ type ingressRouteSource struct {
|
||||
ingressRouteInformer extinformers.IngressRouteInformer
|
||||
}
|
||||
|
||||
// NewIngressRouteSource creates a new ingressRouteSource with the given config.
|
||||
// NewContourIngressRouteSource creates a new contourIngressRouteSource with the given config.
|
||||
func NewContourIngressRouteSource(
|
||||
kubeClient kubernetes.Interface,
|
||||
contourClient contour.Interface,
|
||||
|
Loading…
Reference in New Issue
Block a user