Skip to content

Commit d939e86

Browse files
committed
fix: set topology webhook matchConditions
1 parent 99a6f76 commit d939e86

File tree

1 file changed

+12
-0
lines changed
  • charts/cluster-api-runtime-extensions-nutanix/templates

1 file changed

+12
-0
lines changed

charts/cluster-api-runtime-extensions-nutanix/templates/webhooks.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ webhooks:
1616
namespace: '{{ .Release.Namespace }}'
1717
path: /mutate-v1beta1-addons
1818
failurePolicy: Fail
19+
matchConditions:
20+
- name: has-topology
21+
expression: has(object.spec.topology)
1922
name: addons-defaulter.caren.nutanix.com
2023
rules:
2124
- apiGroups:
@@ -35,6 +38,9 @@ webhooks:
3538
namespace: '{{ .Release.Namespace }}'
3639
path: /mutate-v1beta1-cluster
3740
failurePolicy: Fail
41+
matchConditions:
42+
- name: has-topology
43+
expression: has(object.spec.topology)
3844
name: cluster-defaulter.caren.nutanix.com
3945
rules:
4046
- apiGroups:
@@ -63,6 +69,9 @@ webhooks:
6369
namespace: '{{ .Release.Namespace }}'
6470
path: /validate-v1beta1-cluster
6571
failurePolicy: Fail
72+
matchConditions:
73+
- name: has-topology
74+
expression: has(object.spec.topology)
6675
name: cluster-validator.caren.nutanix.com
6776
rules:
6877
- apiGroups:
@@ -83,6 +92,9 @@ webhooks:
8392
namespace: '{{ .Release.Namespace }}'
8493
path: /preflight-v1beta1-cluster
8594
failurePolicy: Fail
95+
matchConditions:
96+
- name: has-topology
97+
expression: has(object.spec.topology)
8698
name: preflight.cluster.caren.nutanix.com
8799
rules:
88100
- apiGroups:

0 commit comments

Comments
 (0)