From ebf46975bde7dd92652cf597630cdcf621243056 Mon Sep 17 00:00:00 2001 From: xuriwuyun Date: Tue, 10 Oct 2023 11:37:35 +0800 Subject: [PATCH] chore: add mongodb new version (#5364) --- deploy/mongodb/templates/clusterversion.yaml | 27 ++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/deploy/mongodb/templates/clusterversion.yaml b/deploy/mongodb/templates/clusterversion.yaml index 790c40bc9a0..7f39a34de74 100644 --- a/deploy/mongodb/templates/clusterversion.yaml +++ b/deploy/mongodb/templates/clusterversion.yaml @@ -2,8 +2,6 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: ClusterVersion metadata: name: mongodb-{{ default .Chart.AppVersion .Values.clusterVersionOverride }} - annotations: - kubeblocks.io/is-default-cluster-version: "true" labels: {{- include "mongodb.labels" . | nindent 4 }} spec: @@ -91,6 +89,31 @@ spec: cmdExecutorConfig: image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:4.4 +--- +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: ClusterVersion +metadata: + name: mongodb-5.0.20 + annotations: + kubeblocks.io/is-default-cluster-version: "true" + labels: + {{- include "mongodb.labels" . | nindent 4 }} +spec: + clusterDefinitionRef: mongodb + componentVersions: + - componentDefRef: mongodb + versionsContext: + containers: + - name: mongodb + image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:5.0.20 + imagePullPolicy: {{ default .Values.image.pullPolicy "IfNotPresent" }} + systemAccountSpec: + cmdExecutorConfig: + image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:5.0.20 + switchoverSpec: + cmdExecutorConfig: + image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:5.0.20 + --- apiVersion: apps.kubeblocks.io/v1alpha1 kind: ClusterVersion