Skip to content

Commit

Permalink
chore: kb upgrade with dualOperatorsMode failed (#8607)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyelei authored Dec 9, 2024
1 parent 72e4a50 commit f34609d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions deploy/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,17 @@ 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 }}
{{- with .Values.affinity }}
- 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 }}
Expand Down
2 changes: 1 addition & 1 deletion pkg/constant/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

0 comments on commit f34609d

Please sign in to comment.