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:
Chris O'Haver 2019-01-08 08:30:03 -05:00 committed by GitHub
parent 418edd2a2f
commit 18f25dbef3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 76 additions and 4 deletions

View file

@ -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 := ""