Skip to content

Commit 46383a3

Browse files
committed
chore: fix e2e test cloud upgrade to 2.1.*
1 parent a3728d9 commit 46383a3

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

.github/workflows/cloud-e2e-installer.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)