-
Notifications
You must be signed in to change notification settings - Fork 102
/
admission-webhook.yaml
52 lines (52 loc) · 1.24 KB
/
admission-webhook.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
44
45
46
47
48
49
50
51
52
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: admission-validation-webhook
webhooks:
- name: admissionwebhook.noobaa.io
matchPolicy: Equivalent
rules:
- apiGroups: ["noobaa.io"]
apiVersions: ["v1alpha1"]
operations:
- "CREATE"
- "UPDATE"
- "DELETE"
resources:
- "backingstores"
- "namespacestores"
scope: "Namespaced"
- apiGroups: ["noobaa.io"]
apiVersions: ["v1alpha1"]
operations:
- "CREATE"
resources:
- "bucketclasses"
scope: "Namespaced"
- apiGroups: ["noobaa.io"]
apiVersions: ["v1alpha1"]
operations:
- "CREATE"
- "UPDATE"
resources:
- "noobaaaccounts"
scope: "Namespaced"
- apiGroups: ["noobaa.io"]
apiVersions: ["v1alpha1"]
operations:
- "DELETE"
- "CREATE"
- "UPDATE"
resources:
- "noobaas"
scope: "Namespaced"
sideEffects: None
clientConfig:
service:
name: admission-webhook-service
namespace: placeholder
path: "/validate"
caBundle:
admissionReviewVersions: ["v1", "v1beta1"]
failurePolicy: Ignore
timeoutSeconds: 5