mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
commit
0a5ce9afbc
2 changed files with 0 additions and 29 deletions
|
@ -1,21 +0,0 @@
|
|||
# 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-kyverno-webhook-cfg
|
||||
labels:
|
||||
app: kyverno
|
||||
webhooks:
|
||||
- name: webhook.nirmata.kyverno
|
||||
clientConfig:
|
||||
service:
|
||||
name: kyverno-svc
|
||||
namespace: default
|
||||
path: "/mutate"
|
||||
caBundle: ${CA_BUNDLE}
|
||||
rules:
|
||||
- operations: [ "CREATE" ]
|
||||
resources: [ "*/*" ]
|
||||
apiGroups: [ "*" ]
|
||||
apiVersions: [ "*" ]
|
|
@ -33,10 +33,6 @@ if [ -z "${namespace}" ]; then # controller should be launched locally
|
|||
|
||||
${certsGenerator} "--service=${service_name}" "--serverIp=${serverIp}" || exit 2
|
||||
|
||||
echo "Applying webhook..."
|
||||
kubectl delete -f definitions/MutatingWebhookConfiguration_debug.yaml
|
||||
kubectl create -f definitions/MutatingWebhookConfiguration_debug.yaml || exit 3
|
||||
|
||||
kubectl delete -f definitions/install.yaml
|
||||
kubectl create -f definitions/install.yaml || exit 3
|
||||
|
||||
|
@ -59,10 +55,6 @@ else # controller should be launched within a cluster
|
|||
kubectl delete -f crd/deployment.yaml
|
||||
kubectl create -f crd/deployment.yaml || exit 5
|
||||
|
||||
echo "Applying webhook..."
|
||||
kubectl delete -f crd/MutatingWebhookConfiguration.yaml
|
||||
kubectl create -f crd/MutatingWebhookConfiguration.yaml || exit 3
|
||||
|
||||
kubectl delete -f crd/crd.yaml
|
||||
kubectl create -f crd/crd.yaml || exit 3
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue