krusie rollout deployment webhook ignore itself

Signed-off-by: liheng.zms <liheng.zms@alibaba-inc.com>
This commit is contained in:
liheng.zms 2022-11-16 13:44:21 +08:00
parent 423883ac06
commit f7a6a0775a
1 changed files with 6 additions and 0 deletions

View File

@ -58,6 +58,12 @@ webhooks:
path: /mutate-apps-v1-deployment
failurePolicy: Fail
name: mdeployment.kb.io
objectSelector:
matchExpressions:
- key: control-plane
operator: NotIn
values:
- {{ .Values.rollout.fullname }}
rules:
- apiGroups:
- apps