mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
23 lines
853 B
Go
23 lines
853 B
Go
package config
|
|
|
|
const (
|
|
// These constants MUST be equal to the corresponding names in service definition in definitions/install.yaml
|
|
KubePolicyDeploymentName = "kube-policy-deployment"
|
|
KubePolicyNamespace = "kube-system"
|
|
WebhookServiceName = "kube-policy-svc"
|
|
WebhookConfigName = "nirmata-kube-policy-webhook-cfg"
|
|
MutationWebhookName = "webhook.nirmata.kube-policy"
|
|
|
|
// Due to kubernetes issue, we must use next literal constants instead of deployment TypeMeta fields
|
|
// Pull request: https://github.com/kubernetes/kubernetes/pull/63972
|
|
// When pull request is closed, we should use TypeMeta struct instead of this constants
|
|
DeploymentKind = "Deployment"
|
|
DeploymentAPIVersion = "extensions/v1beta1"
|
|
)
|
|
|
|
var (
|
|
WebhookServicePath = "/mutate"
|
|
WebhookConfigLabels = map[string]string{
|
|
"app": "kube-policy",
|
|
}
|
|
)
|