From 94e803111358b56e98a1cfd311c905aebabaa85b Mon Sep 17 00:00:00 2001 From: wangyelei Date: Mon, 9 Dec 2024 11:45:51 +0800 Subject: [PATCH] fix: dataprotection start bug with dualOperatorsMode (#8608) --- deploy/helm/templates/dataprotection.yaml | 7 ++++--- deploy/helm/templates/deployment.yaml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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