diff --git a/deploy/helm/templates/deployment.yaml b/deploy/helm/templates/deployment.yaml index 1227bbbe331..76776e32aa8 100644 --- a/deploy/helm/templates/deployment.yaml +++ b/deploy/helm/templates/deployment.yaml @@ -93,9 +93,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 }} @@ -103,6 +100,10 @@ spec: - name: CM_AFFINITY value: {{ toJson . | quote }} {{- end }} + {{- if .Values.dualOperatorsMode }} + - name: DUAL_OPERATORS_MODE + value: {{ .Values.dualOperatorsMode }} + {{- end }} {{- if .Values.reconcileWorkers }} - name: KUBEBLOCKS_RECONCILE_WORKERS value: {{ .Values.reconcileWorkers | quote }} diff --git a/pkg/constant/const.go b/pkg/constant/const.go index 69691adbcd8..0835171fa13 100644 --- a/pkg/constant/const.go +++ b/pkg/constant/const.go @@ -329,5 +329,5 @@ const EmptyInsTemplateName = "" // DualOperatorsMode indicates whether the operator runs in dual-operators mode. // If it's true, the operator will degrade to a secondary operator and only manage the resources dedicated to releases prior to v1.0. const ( - DualOperatorsMode = "dual-operators-mode" + DualOperatorsMode = "DUAL_OPERATORS_MODE" )