config

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

View Source
const (
	// These constants MUST be equal to the corresponding names in service definition in definitions/install.yaml
	KubePolicyNamespace = "kyverno"
	WebhookServiceName  = "kyverno-svc"

	MutatingWebhookConfigurationName  = "kyverno-mutating-webhook-cfg"
	MutatingWebhookConfigurationDebug = "kyverno-mutating-webhook-cfg-debug"
	MutatingWebhookName               = "nirmata.kyverno.mutating-webhook"

	ValidatingWebhookConfigurationName  = "kyverno-validating-webhook-cfg"
	ValidatingWebhookConfigurationDebug = "kyverno-validating-webhook-cfg-debug"
	ValidatingWebhookName               = "nirmata.kyverno.validating-webhook"

	PolicyValidatingWebhookConfigurationName  = "kyverno-policy-validating-webhook-cfg"
	PolicyValidatingWebhookConfigurationDebug = "kyverno-policy-validating-webhook-cfg-debug"
	PolicyValidatingWebhookName               = "nirmata.kyverno.policy-validating-webhook"

	// Due to kubernetes issue, we must use next literal constants instead of deployment TypeMeta fields
	// Issue: https://github.com/kubernetes/kubernetes/pull/63972
	// When the issue is closed, we should use TypeMeta struct instead of this constants
	DeploymentKind           = "Deployment"
	DeploymentAPIVersion     = "extensions/v1beta1"
	KubePolicyDeploymentName = "kyverno"
)

Variables

View Source
var (
	MutatingWebhookServicePath         = "/mutate"
	ValidatingWebhookServicePath       = "/validate"
	PolicyValidatingWebhookServicePath = "/policyvalidate"
	KubePolicyAppLabels                = map[string]string{
		"app": "kyverno",
	}

	SupportedKinds = []string{
		"ConfigMap",
		"CronJob",
		"DaemonSet",
		"Deployment",
		"Endpoints",
		"HorizontalPodAutoscaler",
		"Ingress",
		"Job",
		"LimitRange",
		"Namespace",
		"NetworkPolicy",
		"PersistentVolumeClaim",
		"PodDisruptionBudget",
		"PodTemplate",
		"ResourceQuota",
		"Secret",
		"Service",
		"StatefulSet",
	}
)

Functions

func LogDefaultFlags

func LogDefaultFlags()

LogDefaults sets default glog flags

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL