@@ -555,15 +555,29 @@ jobs:
555555
556556 echo "upgrade kubeblocks cloud"
557557 CLOUD_VERSION="${{ needs.get-cloud-branch.outputs.cloud-branch }}"
558- helm upgrade --install kb-cloud kubeblocks-enterprise/kubeblocks-cloud \
559- --version ${CLOUD_VERSION} --namespace kb-cloud \
560- --set images.apiserver.tag=${CLOUD_VERSION} \
561- --set images.cr4w.tag=${CLOUD_VERSION} \
562- --set images.openconsole.tag=${CLOUD_VERSION} \
563- --set images.openconsoleAdmin.tag=${CLOUD_VERSION} \
564- --set images.hook.tag=${CLOUD_VERSION} \
565- --set images.cubetranFront.tag=${CLOUD_VERSION} \
566- --reset-then-reuse-values
558+ if [[ "${CLOUD_VERSION}" == "v2.1."* ]]; then
559+ helm upgrade --install kb-cloud kubeblocks-enterprise/kubeblocks-cloud \
560+ --version ${CLOUD_VERSION} --namespace kb-cloud \
561+ --set images.apiserver.tag=${CLOUD_VERSION} \
562+ --set images.cr4w.tag=${CLOUD_VERSION} \
563+ --set images.openconsole.tag=${CLOUD_VERSION} \
564+ --set images.openconsoleAdmin.tag=${CLOUD_VERSION} \
565+ --set images.hook.tag=${CLOUD_VERSION} \
566+ --set images.cubetranFront.tag=${CLOUD_VERSION} \
567+ --set grafana.global.imageRegistry='' \
568+ --set grafana.image.repository='apecloud/grafana' \
569+ --reset-then-reuse-values
570+ else
571+ helm upgrade --install kb-cloud kubeblocks-enterprise/kubeblocks-cloud \
572+ --version ${CLOUD_VERSION} --namespace kb-cloud \
573+ --set images.apiserver.tag=${CLOUD_VERSION} \
574+ --set images.cr4w.tag=${CLOUD_VERSION} \
575+ --set images.openconsole.tag=${CLOUD_VERSION} \
576+ --set images.openconsoleAdmin.tag=${CLOUD_VERSION} \
577+ --set images.hook.tag=${CLOUD_VERSION} \
578+ --set images.cubetranFront.tag=${CLOUD_VERSION} \
579+ --reset-then-reuse-values
580+ fi
567581
568582 upgrade_ret=$?
569583 if [[ $upgrade_ret -eq 0 ]]; then
0 commit comments