Skip to content

Commit bbffbbb

Browse files
author
Parship Chowdhury
committed
added objectSelector to filter workloads by rollout label
Signed-off-by: Parship Chowdhury <i.am.parship@gmail.com>
1 parent f7a2c93 commit bbffbbb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

config/webhook/manifests.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ webhooks:
1414
path: /mutate-apps-kruise-io-v1alpha1-cloneset
1515
failurePolicy: Fail
1616
name: mcloneset.kb.io
17+
objectSelector:
18+
matchExpressions:
19+
- key: rollouts.kruise.io/workload-type
20+
operator: Exists
1721
rules:
1822
- apiGroups:
1923
- apps.kruise.io
@@ -34,6 +38,10 @@ webhooks:
3438
path: /mutate-apps-kruise-io-v1alpha1-daemonset
3539
failurePolicy: Fail
3640
name: mdaemonset.kb.io
41+
objectSelector:
42+
matchExpressions:
43+
- key: rollouts.kruise.io/workload-type
44+
operator: Exists
3745
rules:
3846
- apiGroups:
3947
- apps.kruise.io
@@ -54,6 +62,10 @@ webhooks:
5462
path: /mutate-apps-v1-deployment
5563
failurePolicy: Fail
5664
name: mdeployment.kb.io
65+
objectSelector:
66+
matchExpressions:
67+
- key: rollouts.kruise.io/workload-type
68+
operator: Exists
5769
rules:
5870
- apiGroups:
5971
- apps
@@ -74,6 +86,10 @@ webhooks:
7486
path: /mutate-unified-workload
7587
failurePolicy: Fail
7688
name: munifiedworload.kb.io
89+
objectSelector:
90+
matchExpressions:
91+
- key: rollouts.kruise.io/workload-type
92+
operator: Exists
7793
rules:
7894
- apiGroups:
7995
- '*'

0 commit comments

Comments
 (0)