aboutsummaryrefslogtreecommitdiff
path: root/middleware/kubernetes
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/kubernetes')
-rw-r--r--middleware/kubernetes/autopath.go1
-rw-r--r--middleware/kubernetes/kubernetes.go3
2 files changed, 3 insertions, 1 deletions
diff --git a/middleware/kubernetes/autopath.go b/middleware/kubernetes/autopath.go
index ac86cfd6b..fa79212a9 100644
--- a/middleware/kubernetes/autopath.go
+++ b/middleware/kubernetes/autopath.go
@@ -14,7 +14,6 @@ import "github.com/miekg/dns"
// is NXDOMAIN (NameError). This is needed to support the AutoPath.OnNXDOMAIN
// function, which returns a NOERROR to client instead of NXDOMAIN if the final
// search in the path fails to produce results.
-
type AutoPathWriter struct {
dns.ResponseWriter
original dns.Question
diff --git a/middleware/kubernetes/kubernetes.go b/middleware/kubernetes/kubernetes.go
index f70f8fcbf..4482de024 100644
--- a/middleware/kubernetes/kubernetes.go
+++ b/middleware/kubernetes/kubernetes.go
@@ -49,6 +49,7 @@ type Kubernetes struct {
interfaceAddrsFunc func() net.IP
}
+// AutoPath enables server side search path lookups for pods
type AutoPath struct {
Enabled bool
NDots int
@@ -683,6 +684,8 @@ func splitSearch(zone, question, namespace string) (name, search string, ok bool
}
const (
+ // Svc is the DNS schema for kubernetes services
Svc = "svc"
+ // Pod is the DNS schema for kubernetes pods
Pod = "pod"
)