mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 17:46:57 +02:00
it is okay to expose zoneids
Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
This commit is contained in:
parent
45b1db4478
commit
180afc67ea
@ -405,7 +405,7 @@ func (d *dynProviderState) buildLinkToRecord(ep *endpoint.Endpoint) string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
var matchingZone = ""
|
var matchingZone = ""
|
||||||
for _, zone := range d.ZoneIDFilter.ZoneIDs { // FIXME this should not access directly the ZoneIDs
|
for _, zone := range d.ZoneIDFilter.ZoneIDs {
|
||||||
if strings.HasSuffix(ep.DNSName, zone) {
|
if strings.HasSuffix(ep.DNSName, zone) {
|
||||||
matchingZone = zone
|
matchingZone = zone
|
||||||
break
|
break
|
||||||
|
@ -20,7 +20,7 @@ import "strings"
|
|||||||
|
|
||||||
// ZoneIDFilter holds a list of zone ids to filter by
|
// ZoneIDFilter holds a list of zone ids to filter by
|
||||||
type ZoneIDFilter struct {
|
type ZoneIDFilter struct {
|
||||||
ZoneIDs []string // FIXME this was temporarily put as public to allow the dyn provider to compile
|
ZoneIDs []string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewZoneIDFilter returns a new ZoneIDFilter given a list of zone ids
|
// NewZoneIDFilter returns a new ZoneIDFilter given a list of zone ids
|
||||||
|
Loading…
Reference in New Issue
Block a user