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

Merge pull request #447 from nirmata/446_cleanup

remove unused yamls
This commit is contained in:
shuting 2019-11-06 16:44:48 -08:00 committed by GitHub
commit 0a5ce9afbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 29 deletions

View file

@ -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: [ "*" ]

View file

@ -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