Skip to content

Commit d6e2ae6

Browse files
committed
chore: check enable addon chart repo
1 parent 46383a3 commit d6e2ae6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/utils/manifests_charts_addon_upgrade.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
MANIFESTS_FILE=${1:-""}
3+
ADD_CHART=${2:-"true"}
34

45

56
add_chart_repo() {
@@ -148,7 +149,12 @@ main() {
148149
local KB_REPO_URL="https://apecloud.github.io/helm-charts"
149150
local KB_ENT_REPO_NAME="kb-ent-charts"
150151
local KB_ENT_REPO_URL="https://jihulab.com/api/v4/projects/${CHART_PROJECT_ID}/packages/helm/stable"
151-
add_chart_repo
152+
if [[ "${ADD_CHART}" == "true" ]]; then
153+
add_chart_repo
154+
else
155+
KB_REPO_NAME="kubeblocks-addons"
156+
KB_REPO_URL="https://jihulab.com/api/v4/projects/150246/packages/helm/stable"
157+
fi
152158

153159
upgrade_charts_addon
154160
}

.github/utils/manifests_charts_image_check.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,11 @@ main() {
304304
local KB_ENT_REPO_URL="https://jihulab.com/api/v4/projects/${CHART_PROJECT_ID}/packages/helm/stable"
305305
if [[ "${ADD_CHART}" == "true" ]]; then
306306
add_chart_repo
307+
else
308+
KB_REPO_NAME="kubeblocks-addons"
309+
KB_REPO_URL="https://jihulab.com/api/v4/projects/150246/packages/helm/stable"
307310
fi
311+
308312
check_charts_images
309313
}
310314

0 commit comments

Comments
 (0)