mirror of
https://github.com/coredns/coredns.git
synced 2026-10-09 12:05:22 -04:00
plugin: use Zones.Contains when any match suffices (#8505)
This commit is contained in:
@@ -718,8 +718,7 @@ func (k *Kubernetes) Serial(state request.Request) uint32 {
|
||||
func (k *Kubernetes) MinTTL(_state request.Request) uint32 { return k.ttl }
|
||||
|
||||
func (k *Kubernetes) isMultiClusterZone(zone string) bool {
|
||||
z := plugin.Zones(k.opts.multiclusterZones).Matches(zone)
|
||||
return z != ""
|
||||
return plugin.Zones(k.opts.multiclusterZones).Contains(zone)
|
||||
}
|
||||
|
||||
// match checks if a and b are equal.
|
||||
|
||||
Reference in New Issue
Block a user