forked from topolvm/topolvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mutatingwebhooks.yaml
43 lines (43 loc) · 1.13 KB
/
mutatingwebhooks.yaml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apiVersion: admissionregistration.k8s.io/v1beta1
kind: MutatingWebhookConfiguration
metadata:
name: topolvm-hook
annotations:
cert-manager.io/inject-ca-from: topolvm-system/mutatingwebhook
labels:
app.kubernetes.io/name: topolvm-hook
webhooks:
- name: pod-hook.topolvm.cybozu.com
namespaceSelector:
matchExpressions:
- key: topolvm.cybozu.com/webhook
operator: NotIn
values: ["ignore"]
failurePolicy: Fail
clientConfig:
service:
namespace: topolvm-system
name: controller
path: /pod/mutate
rules:
- operations: ["CREATE"]
apiGroups: [""]
apiVersions: ["v1"]
resources: ["pods"]
- name: pvc-hook.topolvm.cybozu.com
namespaceSelector:
matchExpressions:
- key: topolvm.cybozu.com/webhook
operator: NotIn
values: ["ignore"]
failurePolicy: Fail
clientConfig:
service:
namespace: topolvm-system
name: controller
path: /pvc/mutate
rules:
- operations: ["CREATE"]
apiGroups: [""]
apiVersions: ["v1"]
resources: ["persistentvolumeclaims"]