Skip to content

Commit fb68eb7

Browse files
committed
fixup! feat: Configure namespace sync in helm chart
Set source namespace to helm release namespace by default
1 parent fccd81d commit fb68eb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
- --webhook-cert-dir=/runtimehooks-certs/
3232
- --defaults-namespace=$(POD_NAMESPACE)
3333
- --namespacesync-enabled={{ .Values.namespaceSync.enabled }}
34-
- --namespacesync-source-namespace={{ .Values.namespaceSync.sourceNamespace }}
34+
- --namespacesync-source-namespace={{ .Values.namespaceSync.sourceNamespace | default .Release.Namespace }}
3535
- --namespacesync-target-namespace-label-key={{ .Values.namespaceSync.targetNamespaceLabelKey }}
3636
- --helm-addons-configmap={{ .Values.helmAddonsConfigMap }}
3737
- --cni.cilium.helm-addon.default-values-template-configmap-name={{ .Values.hooks.cni.cilium.helmAddonStrategy.defaultValueTemplateConfigMap.name }}

charts/cluster-api-runtime-extensions-nutanix/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ deployDefaultClusterClasses: true
9292
# target namespace, i.e., every namespace that has a label with a matching key.
9393
namespaceSync:
9494
enabled: true
95-
sourceNamespace: default
95+
sourceNamespace: # When sourceNamespace is empty, the helm release namespace is used.
9696
targetNamespaceLabelKey: caren.nutanix.com/namespace-sync
9797

9898
deployment:

0 commit comments

Comments
 (0)