diff --git a/definitions/MutatingWebhookConfiguration.yaml b/definitions/MutatingWebhookConfiguration.yaml deleted file mode 100644 index a45fc667c8..0000000000 --- a/definitions/MutatingWebhookConfiguration.yaml +++ /dev/null @@ -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: [ "*" ] diff --git a/scripts/deploy-controller.sh b/scripts/deploy-controller.sh index 5399d4b1f2..89a3822d00 100755 --- a/scripts/deploy-controller.sh +++ b/scripts/deploy-controller.sh @@ -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