quick fix
will use script generate patch instead of hard code
# ns
- op: add
- path: /webhooks/13/objectSelector
+ path: /webhooks/14/objectSelector
value:
matchExpressions:
- { key: tenant, operator: Exists }
- op: add
- path: /webhooks/13/namespaceSelector
+ path: /webhooks/14/namespaceSelector
value:
matchLabels:
kalm-enabled: "true"
# pod
- op: add
- path: /webhooks/14/objectSelector
+ path: /webhooks/15/objectSelector
value:
matchExpressions:
- { key: tenant, operator: Exists }
- op: add
- path: /webhooks/14/namespaceSelector
+ path: /webhooks/15/namespaceSelector
value:
matchLabels:
kalm-enabled: "true"
# pvc
- op: add
- path: /webhooks/15/objectSelector
+ path: /webhooks/16/objectSelector
value:
matchExpressions:
- { key: tenant, operator: Exists }
- op: add
- path: /webhooks/15/namespaceSelector
+ path: /webhooks/16/namespaceSelector
value:
matchLabels:
kalm-enabled: "true"
# svc
- op: add
- path: /webhooks/16/objectSelector
+ path: /webhooks/17/objectSelector
value:
matchExpressions:
- { key: tenant, operator: Exists }
- op: add
- path: /webhooks/16/namespaceSelector
+ path: /webhooks/17/namespaceSelector
value:
matchLabels:
kalm-enabled: "true"
\ No newline at end of file
