diff --git a/deploy/helm/templates/dataprotection.yaml b/deploy/helm/templates/dataprotection.yaml index df972d64857..5877946bfab 100644 --- a/deploy/helm/templates/dataprotection.yaml +++ b/deploy/helm/templates/dataprotection.yaml @@ -85,9 +85,6 @@ spec: {{- if .Values.userAgent }} - "--user-agent={{ .Values.userAgent }}" {{- end }} - {{- if .Values.dualOperatorsMode }} - - "--dual-operators-mode={{ .Values.dualOperatorsMode }}" - {{- end }} env: - name: CM_NAMESPACE value: {{ .Release.Namespace }} @@ -95,6 +92,10 @@ spec: - name: CM_AFFINITY value: {{ toJson . | quote }} {{- end }} + {{- if .Values.dualOperatorsMode }} + - name: DUAL_OPERATORS_MODE + value: {{ .Values.dualOperatorsMode | quote }} + {{- end }} {{- with .Values.nodeSelector }} - name: CM_NODE_SELECTOR value: {{ toJson . | quote }} diff --git a/deploy/helm/templates/deployment.yaml b/deploy/helm/templates/deployment.yaml index 76776e32aa8..92d8ff01564 100644 --- a/deploy/helm/templates/deployment.yaml +++ b/deploy/helm/templates/deployment.yaml @@ -102,7 +102,7 @@ spec: {{- end }} {{- if .Values.dualOperatorsMode }} - name: DUAL_OPERATORS_MODE - value: {{ .Values.dualOperatorsMode }} + value: {{ .Values.dualOperatorsMode | quote }} {{- end }} {{- if .Values.reconcileWorkers }} - name: KUBEBLOCKS_RECONCILE_WORKERS