From bbffbbb756896f319e7d2ae77b62bbd13c9e6097 Mon Sep 17 00:00:00 2001 From: Parship Chowdhury Date: Sat, 26 Jul 2025 12:13:40 +0000 Subject: [PATCH] added objectSelector to filter workloads by rollout label Signed-off-by: Parship Chowdhury --- config/webhook/manifests.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/config/webhook/manifests.yaml b/config/webhook/manifests.yaml index e213848..ae9ec08 100644 --- a/config/webhook/manifests.yaml +++ b/config/webhook/manifests.yaml @@ -14,6 +14,10 @@ webhooks: path: /mutate-apps-kruise-io-v1alpha1-cloneset failurePolicy: Fail name: mcloneset.kb.io + objectSelector: + matchExpressions: + - key: rollouts.kruise.io/workload-type + operator: Exists rules: - apiGroups: - apps.kruise.io @@ -34,6 +38,10 @@ webhooks: path: /mutate-apps-kruise-io-v1alpha1-daemonset failurePolicy: Fail name: mdaemonset.kb.io + objectSelector: + matchExpressions: + - key: rollouts.kruise.io/workload-type + operator: Exists rules: - apiGroups: - apps.kruise.io @@ -54,6 +62,10 @@ webhooks: path: /mutate-apps-v1-deployment failurePolicy: Fail name: mdeployment.kb.io + objectSelector: + matchExpressions: + - key: rollouts.kruise.io/workload-type + operator: Exists rules: - apiGroups: - apps @@ -74,6 +86,10 @@ webhooks: path: /mutate-unified-workload failurePolicy: Fail name: munifiedworload.kb.io + objectSelector: + matchExpressions: + - key: rollouts.kruise.io/workload-type + operator: Exists rules: - apiGroups: - '*'