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

Merge commit '0a5ce9afbca2d8cab1e9442a02c47f2e8173d9e8' into 414_mutate_safe-to-evict_emptydir

# Conflicts:
#	samples/best_practices/add_safe-to-evict_annotation.yaml
#	test/scenarios/samples/best_practices/scenario_mutate_safe-to-evict.yaml
This commit is contained in:
Shuting Zhao 2019-11-06 16:51:57 -08:00
commit 42150f95da
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