mirror of
https://github.com/coredns/coredns.git
synced 2026-06-02 07:10:24 -04:00
fix(kubernetes): remove debug fmt.Println from multicluster zone validation (#8131)
Signed-off-by: immanuwell <pchpr.00@list.ru>
This commit is contained in:
committed by
GitHub
parent
6b93363b94
commit
33c71b1554
@@ -293,8 +293,7 @@ func ParseStanza(c *caddy.Controller) (*Kubernetes, error) {
|
||||
|
||||
for _, multiclusterZone := range k8s.opts.multiclusterZones {
|
||||
if !slices.Contains(k8s.Zones, multiclusterZone) {
|
||||
fmt.Println(k8s.Zones)
|
||||
return nil, c.Errf("is not authoritative for the multicluster zone %s", multiclusterZone)
|
||||
return nil, c.Errf("is not authoritative for the multicluster zone %s (authoritative zones: %v)", multiclusterZone, k8s.Zones)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user