File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments