File tree 4 files changed +30
-0
lines changed
charts/cluster-api-runtime-extensions-nutanix
4 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ A Helm chart for cluster-api-runtime-extensions-nutanix
73
73
| image.repository | string | ` "ghcr.io/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix" ` | |
74
74
| image.tag | string | ` "" ` | |
75
75
| imagePullSecrets | list | ` [] ` | Optional secrets used for pulling the container image |
76
+ | namespaceSync.enabled | bool | ` true ` | |
77
+ | namespaceSync.sourceNamespace | string | ` "" ` | |
78
+ | namespaceSync.targetNamespaceLabelKey | string | ` "caren.nutanix.com/namespace-sync" ` | |
76
79
| nodeSelector | object | ` {} ` | |
77
80
| priorityClassName | string | ` "system-cluster-critical" ` | Priority class to be used for the pod. |
78
81
| resources.limits.cpu | string | ` "100m" ` | |
Original file line number Diff line number Diff line change 30
30
args :
31
31
- --webhook-cert-dir=/runtimehooks-certs/
32
32
- --defaults-namespace=$(POD_NAMESPACE)
33
+ - --namespacesync-enabled={{ .Values.namespaceSync.enabled }}
34
+ - --namespacesync-source-namespace={{ .Values.namespaceSync.sourceNamespace | default .Release.Namespace }}
35
+ - --namespacesync-target-namespace-label-key={{ .Values.namespaceSync.targetNamespaceLabelKey }}
33
36
- --helm-addons-configmap={{ .Values.helmAddonsConfigMap }}
34
37
- --cni.cilium.helm-addon.default-values-template-configmap-name={{ .Values.hooks.cni.cilium.helmAddonStrategy.defaultValueTemplateConfigMap.name }}
35
38
- --nfd.helm-addon.default-values-template-configmap-name={{ .Values.hooks.nfd.helmAddonStrategy.defaultValueTemplateConfigMap.name }}
Original file line number Diff line number Diff line change 401
401
"imagePullSecrets" : {
402
402
"type" : " array"
403
403
},
404
+ "namespaceSync" : {
405
+ "properties" : {
406
+ "enabled" : {
407
+ "type" : " boolean"
408
+ },
409
+ "sourceNamespace" : {
410
+ "type" : " string"
411
+ },
412
+ "targetNamespaceLabelKey" : {
413
+ "type" : " string"
414
+ }
415
+ },
416
+ "type" : " object"
417
+ },
404
418
"nodeSelector" : {
405
419
"properties" : {},
406
420
"type" : " object"
Original file line number Diff line number Diff line change @@ -89,6 +89,16 @@ selfHostedRegistry: true
89
89
90
90
deployDefaultClusterClasses : true
91
91
92
+ # The ClusterClass and the Templates it references must be in the same namespace
93
+ # as the Cluster. To enable cluster creation in user-defined namespaces, CAREN
94
+ # will copy all ClusterClasses and Templates from the source namespace to every
95
+ # target namespace, i.e., every namespace that has a label with a matching key.
96
+ namespaceSync :
97
+ enabled : true
98
+ targetNamespaceLabelKey : caren.nutanix.com/namespace-sync
99
+ # By default, sourceNamespace is the helm release namespace.
100
+ sourceNamespace : " "
101
+
92
102
deployment :
93
103
replicas : 1
94
104
You can’t perform that action at this time.
0 commit comments