Skip to content

Commit 3490adb

Browse files
committed
vibe: fix e2e_tests after helm DEVEL version
1 parent 08166e3 commit 3490adb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

script/e2e-test.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,17 @@ installOrUpgradeKubeapps() {
301301
info "Installing Kubeapps from ${chartSource}..."
302302
kubectl -n kubeapps delete secret localhost-tls || true
303303

304+
# If installing from local chart, replace dev version with valid semver for helm validation
305+
if [[ "${chartSource}" == "${ROOT_DIR}/chart/kubeapps" ]]; then
306+
local chart_yaml="${chartSource}/Chart.yaml"
307+
if [[ -f "${chart_yaml}" ]]; then
308+
# Replace 0.0.0-dev with valid test version (no need to restore in CI environment)
309+
sed -i.tmp -e 's/^version: 0\.0\.0-dev$/version: 0.0.0-e2e-test/' "${chart_yaml}"
310+
rm -f "${chart_yaml}.tmp"
311+
info "Replaced chart version with 0.0.0-e2e-test for installation"
312+
fi
313+
fi
314+
304315
# Build optional PostgreSQL override flags if version provided
305316
local postgresql_override_flags=()
306317
if [[ -n "${POSTGRESQL_VERSION:-}" ]]; then

0 commit comments

Comments
 (0)