Skip to content

Commit

Permalink
Add CoreDNS LB Service support for Infoblox
Browse files Browse the repository at this point in the history
  • Loading branch information
kuritka committed Dec 7, 2022
1 parent a495612 commit 73f0bf0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion controllers/providers/dns/infoblox.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ func (p *InfobloxProvider) CreateZoneDelegationForExternalDNS(rs *mapper.LoopSta
p.metrics.InfobloxIncrementZoneUpdateError(rs.NamespacedName)
return err
}
addresses, err := p.assistant.IngressExposedIPs(rs)
var addresses []string
if p.config.CoreDNSExposed {
addresses, err = p.assistant.CoreDNSExposedIPs()
} else {
addresses, err = p.assistant.IngressExposedIPs(rs)
}
if err != nil {
p.metrics.InfobloxIncrementZoneUpdateError(rs.NamespacedName)
return err
Expand Down

0 comments on commit 73f0bf0

Please # to comment.