2019-03-18 18:59:30 +02:00
|
|
|
# MutatingWebhookConfiguration document which should be used when placing controller inside the cluster
|
2019-03-22 22:11:55 +02:00
|
|
|
# This configuration is just an example. Webhook for in-cluster configuration is registered by controller (see webhooks/registration.go).
|
2019-02-12 16:12:03 +02:00
|
|
|
apiVersion: admissionregistration.k8s.io/v1beta1
|
|
|
|
kind: MutatingWebhookConfiguration
|
|
|
|
metadata:
|
2019-05-21 18:36:24 -07:00
|
|
|
name: nirmata-kyverno-webhook-cfg
|
2019-02-12 16:12:03 +02:00
|
|
|
labels:
|
2019-05-21 18:36:24 -07:00
|
|
|
app: kyverno
|
2019-02-12 16:12:03 +02:00
|
|
|
webhooks:
|
2019-05-21 18:36:24 -07:00
|
|
|
- name: webhook.nirmata.kyverno
|
2019-02-12 16:12:03 +02:00
|
|
|
clientConfig:
|
|
|
|
service:
|
2019-05-21 18:36:24 -07:00
|
|
|
name: kyverno-svc
|
2019-02-12 16:12:03 +02:00
|
|
|
namespace: default
|
|
|
|
path: "/mutate"
|
2019-03-01 18:37:58 +02:00
|
|
|
caBundle: ${CA_BUNDLE}
|
2019-02-12 16:12:03 +02:00
|
|
|
rules:
|
|
|
|
- operations: [ "CREATE" ]
|
|
|
|
resources: [ "*/*" ]
|
|
|
|
apiGroups: [ "*" ]
|
|
|
|
apiVersions: [ "*" ]
|