File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
charts/cluster-api-runtime-extensions-nutanix/templates Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ webhooks:
2727 resources :
2828 - clusters
2929 sideEffects : None
30+ matchConditions :
31+ - name : has-topology
32+ expression : has(object.spec.topology)
3033 - admissionReviewVersions :
3134 - v1
3235 clientConfig :
@@ -47,6 +50,9 @@ webhooks:
4750 resources :
4851 - clusters
4952 sideEffects : None
53+ matchConditions :
54+ - name : has-topology
55+ expression : has(object.spec.topology)
5056---
5157apiVersion : admissionregistration.k8s.io/v1
5258kind : ValidatingWebhookConfiguration
@@ -75,6 +81,9 @@ webhooks:
7581 resources :
7682 - clusters
7783 sideEffects : None
84+ matchConditions :
85+ - name : has-topology
86+ expression : has(object.spec.topology)
7887 - admissionReviewVersions :
7988 - v1
8089 clientConfig :
@@ -95,3 +104,6 @@ webhooks:
95104 - clusters
96105 sideEffects : None
97106 timeoutSeconds : 30
107+ matchConditions :
108+ - name : has-topology
109+ expression : has(object.spec.topology)
Original file line number Diff line number Diff line change 77with(.metadata;
88 .name = "{{ include \"chart.name\" . }}-" + .name,
99 .annotations["cert-manager.io/inject-ca-from"] = "{{ .Release.Namespace}}/{{ template \"chart.name\" . }}-admission-tls"
10- ),
10+ ) |
1111with(.webhooks[].clientConfig.service;
1212 .name = "{{ include \"chart.name\" . }}-admission",
1313 .namespace = "{{ .Release.Namespace }}"
14+ ) |
15+ with(.webhooks[];
16+ .matchConditions = [
17+ {
18+ "name": "has-topology",
19+ "expression": "has(object.spec.topology)"
20+ }
21+ ]
1422)
You can’t perform that action at this time.
0 commit comments