1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/definitions/MutatingWebhookConfiguration.yaml

22 lines
727 B
YAML
Raw Normal View History

# MutatingWebhookConfiguration document which should be used when placing controller inside the cluster
# This configuration is just an example. Webhook for in-cluster configuration is registered by controller (see webhooks/registration.go).
apiVersion: admissionregistration.k8s.io/v1beta1
kind: MutatingWebhookConfiguration
metadata:
name: nirmata-kube-policy-webhook-cfg
labels:
app: kube-policy
webhooks:
- name: webhook.nirmata.kube-policy
clientConfig:
service:
name: kube-policy-svc
namespace: default
path: "/mutate"
caBundle: ${CA_BUNDLE}
rules:
- operations: [ "CREATE" ]
resources: [ "*/*" ]
apiGroups: [ "*" ]
apiVersions: [ "*" ]