mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
plugin/kubernetes: fix case preservation and add test (#2430)
* fix case preservation and add test * only fix case in k8s
This commit is contained in:
@@ -15,8 +15,8 @@ import (
|
||||
// Zones respresents a lists of zone names.
|
||||
type Zones []string
|
||||
|
||||
// Matches checks is qname is a subdomain of any of the zones in z. The match
|
||||
// will return the most specific zones that matches other. The empty string
|
||||
// Matches checks if qname is a subdomain of any of the zones in z. The match
|
||||
// will return the most specific zones that matches. The empty string
|
||||
// signals a not found condition.
|
||||
func (z Zones) Matches(qname string) string {
|
||||
zone := ""
|
||||
|
||||
Reference in New Issue
Block a user