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:
parent
418edd2a2f
commit
18f25dbef3
3 changed files with 76 additions and 4 deletions
|
@ -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 := ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue