diff --git a/changelog/20251010_fix_split_environment_variables_on_helm_chart.md b/changelog/20251010_fix_split_environment_variables_on_helm_chart.md new file mode 100644 index 000000000..688cc0a42 --- /dev/null +++ b/changelog/20251010_fix_split_environment_variables_on_helm_chart.md @@ -0,0 +1,6 @@ +--- +kind: fix +date: 2025-10-10 +--- + +* Fixed parsing of the `customEnvVars` Helm value when values contain `=` characters. diff --git a/helm_chart/templates/operator.yaml b/helm_chart/templates/operator.yaml index d6b9fee91..2fdc2b983 100644 --- a/helm_chart/templates/operator.yaml +++ b/helm_chart/templates/operator.yaml @@ -277,8 +277,8 @@ spec: {{- end }} {{- if .Values.customEnvVars }} {{- range split "&" .Values.customEnvVars }} - - name: {{ (split "=" .)._0 }} - value: '{{ (split "=" .)._1 }}' + - name: {{ (splitn "=" 2 .)._0 }} + value: '{{ (splitn "=" 2 .)._1 }}' {{- end }} {{- end }} {{- if .Values.multiCluster.clusters }}