forked from cisco-app-networking/networkservicemesh
/
const.go
35 lines (33 loc) · 1.37 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package main
import v1 "k8s.io/api/core/v1"
const (
emptyBody = "empty body"
mutateMethod = "/mutate"
invalidContentType = "invalid Content-Type=%v, expect \"application/json\""
couldNotEncodeReview = "could not encode response: %v"
couldNotWriteReview = "could not write response: %v"
deployment = "Deployment"
pod = "Pod"
nsmAnnotationKey = "ns.networkservicemesh.io"
repoEnv = "REPO"
initContainerEnv = "INITCONTAINER"
namespaceEnv = "NSM_NAMESPACE"
tagEnv = "TAG"
tracerEnabledEnv = "TRACER_ENABLED"
jaegerHostEnv = "JAEGER_AGENT_HOST"
jaegerPortEnv = "JAEGER_AGENT_PORT"
repoDefault = "networkservicemesh"
initContainerDefault = "nsm-init"
dnsInitContainerDefault = "nsm-dns-init"
namespaceDefault = "default"
tagDefault = "latest"
initContainerName = "nsm-init-container"
certFile = "/etc/webhook/certs/" + v1.TLSCertKey
keyFile = "/etc/webhook/certs/" + v1.TLSPrivateKeyKey
initContainersPath = "/spec/initContainers"
unsupportedKind = "kind %v is not supported"
deploymentSubPath = "/spec/template"
volumePath = "/spec/volumes"
containersPath = "/spec/containers"
defaultPort = 443
)