Refactoring of k8s helpers

This commit is contained in:
Manuel de Brito Fontes
2016-09-23 09:48:11 -03:00
parent 090d1872e9
commit 2b62384223
7 changed files with 68 additions and 79 deletions

View File

@@ -4,7 +4,7 @@ import (
"errors"
"strings"
"github.com/miekg/coredns/middleware/kubernetes/util"
dns_strings "github.com/miekg/coredns/middleware/pkg/strings"
)
// Likely symbols that require support:
@@ -125,7 +125,7 @@ func (t *NameTemplate) GetTypeFromSegmentArray(segments []string) string {
typeSegment := t.GetSymbolFromSegmentArray("type", segments)
// Limit type to known types symbols
if util.StringInSlice(typeSegment, types) {
if dns_strings.StringInSlice(typeSegment, types) {
return ""
}