-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmutatingwebhook.yaml
More file actions
26 lines (26 loc) · 893 Bytes
/
mutatingwebhook.yaml
File metadata and controls
26 lines (26 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
name: test-mwh
labels:
app: crd-hook
webhooks:
- name: test-mwh.mwh.v1
sideEffects: "None"
admissionReviewVersions: ["v1beta1","v1"]
# namespaceSelector:
# matchExpressions:
# - key: "managedby"
# operator: "In"
# values: ["kubeplus"]
clientConfig:
service:
name: crd-hook-service
namespace: default
path: "/mutate"
caBundle: ${CA_BUNDLE}
rules:
- operations: [ "CREATE","DELETE"]
apiGroups: ["workflows.kubeplus", "apps", "extensions", "", "apiextensions.k8s.io", "platformapi.kubeplus"]
apiVersions: ["v1alpha1", "v1", "v1beta1"]
resources: ["resourcepolicies", "resourcecompositions", "resourcemonitors", "resourceevents", "pods", "customresourcedefinitions","namespaces","*"]