Consolidating const declarations (#1287)
This commit is contained in:
parent
0e8ceea1d6
commit
986512892d
1 changed files with 6 additions and 9 deletions
|
@ -71,6 +71,12 @@ const (
|
||||||
podModeInsecure = "insecure"
|
podModeInsecure = "insecure"
|
||||||
// DNSSchemaVersion is the schema version: https://github.com/kubernetes/dns/blob/master/docs/specification.md
|
// DNSSchemaVersion is the schema version: https://github.com/kubernetes/dns/blob/master/docs/specification.md
|
||||||
DNSSchemaVersion = "1.0.1"
|
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 (
|
var (
|
||||||
|
@ -461,12 +467,3 @@ func match(a, b string) bool {
|
||||||
func wildcard(s string) bool {
|
func wildcard(s string) bool {
|
||||||
return s == "*" || s == "any"
|
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
|
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue