aboutsummaryrefslogtreecommitdiff
path: root/middleware/kubernetes/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/kubernetes/path.go')
-rw-r--r--middleware/kubernetes/path.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/middleware/kubernetes/path.go b/middleware/kubernetes/path.go
deleted file mode 100644
index 18c26f949..000000000
--- a/middleware/kubernetes/path.go
+++ /dev/null
@@ -1,17 +0,0 @@
-package kubernetes
-
-import (
- "strings"
-
- "github.com/miekg/dns"
-)
-
-// Domain is the opposite of Path.
-func (k Kubernetes) Domain(s string) string {
- l := strings.Split(s, "/")
- // start with 1, to strip /skydns
- for i, j := 1, len(l)-1; i < j; i, j = i+1, j-1 {
- l[i], l[j] = l[j], l[i]
- }
- return dns.Fqdn(strings.Join(l[1:len(l)-1], "."))
-}