mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 09:36:58 +02:00
Fixed identation
Signed-off-by: João Marçal <joao.marcal12@gmail.com>
This commit is contained in:
parent
4dc7e75530
commit
d35633b47f
@ -120,7 +120,7 @@ func (cs *crdSource) Endpoints() ([]*endpoint.Endpoint, error) {
|
||||
// Make sure that all endpoints have targets for A or CNAME type
|
||||
crdEndpoints := []*endpoint.Endpoint{}
|
||||
for _, ep := range dnsEndpoint.Spec.Endpoints {
|
||||
if (ep.RecordType == "CNAME" || ep.RecordType == "A"|| ep.RecordType == "AAAA") && len(ep.Targets) < 1 {
|
||||
if (ep.RecordType == "CNAME" || ep.RecordType == "A" || ep.RecordType == "AAAA") && len(ep.Targets) < 1 {
|
||||
log.Warnf("Endpoint %s with DNSName %s has an empty list of targets", dnsEndpoint.ObjectMeta.Name, ep.DNSName)
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user