aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/kubernetes.go
diff options
context:
space:
mode:
authorGravatar Brad Beam <bradbeam@users.noreply.github.com> 2017-12-07 17:04:02 -0600
committerGravatar Miek Gieben <miek@miek.nl> 2017-12-07 23:04:02 +0000
commit986512892d1b18f78e69e5bb0aeb5b9f53958973 (patch)
treed7baf1eb6085466cccb48652c3740cd588aa6a0c /plugin/kubernetes/kubernetes.go
parent0e8ceea1d6f051c026a6210334cda2f5e29ebba4 (diff)
downloadcoredns-986512892d1b18f78e69e5bb0aeb5b9f53958973.tar.gz
coredns-986512892d1b18f78e69e5bb0aeb5b9f53958973.tar.zst
coredns-986512892d1b18f78e69e5bb0aeb5b9f53958973.zip
Consolidating const declarations (#1287)
Diffstat (limited to 'plugin/kubernetes/kubernetes.go')
-rw-r--r--plugin/kubernetes/kubernetes.go15
1 files changed, 6 insertions, 9 deletions
diff --git a/plugin/kubernetes/kubernetes.go b/plugin/kubernetes/kubernetes.go
index 8048f85cb..c16083f0e 100644
--- a/plugin/kubernetes/kubernetes.go
+++ b/plugin/kubernetes/kubernetes.go
@@ -71,6 +71,12 @@ const (
podModeInsecure = "insecure"
// DNSSchemaVersion is the schema version: https://github.com/kubernetes/dns/blob/master/docs/specification.md
DNSSchemaVersion = "1.0.1"
+ // Svc is the DNS schema for kubernetes services
+ Svc = "svc"
+ // Pod is the DNS schema for kubernetes pods
+ Pod = "pod"
+ // defaultTTL to apply to all answers.
+ defaultTTL = 5
)
var (
@@ -461,12 +467,3 @@ func match(a, b string) bool {
func wildcard(s string) bool {
return s == "*" || s == "any"
}
-
-const (
- // Svc is the DNS schema for kubernetes services
- Svc = "svc"
- // Pod is the DNS schema for kubernetes pods
- Pod = "pod"
- // defaultTTL to apply to all answers.
- defaultTTL = 5
-)