From f34609d941c4e62b8df3fba60dd3b7506b44f11a Mon Sep 17 00:00:00 2001 From: wangyelei Date: Mon, 9 Dec 2024 11:03:06 +0800 Subject: [PATCH] chore: kb upgrade with dualOperatorsMode failed (#8607) --- deploy/helm/templates/deployment.yaml | 7 ++++--- pkg/constant/const.go | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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" )