Don't refresh repository cache upon init 04/116504/1
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Tue, 22 Dec 2020 09:36:47 +0000 (10:36 +0100)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Tue, 22 Dec 2020 09:36:47 +0000 (10:36 +0100)
Main reason for adding this option is that stable repo
url of https://kubernetes-charts.storage.googleapis.com
has been obsoleted hence the "init" command fails on trying
to reach it. Since we're removing it afterwards anyway thus
--skip-refresh will allow "init" to pass without actually trying
to get it's contents.

Change-Id: I0719648fcfaf30da52ae19327f024b901471f188
Issue-ID: OOM-2660
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
build/creating_data/docker-images-collector.sh

index d1233a8..e33d500 100755 (executable)
@@ -160,7 +160,7 @@ HELM_HOME=$(mktemp -p /tmp -d .helm.XXXXXXXX)
 export HELM_HOME
 kill_helm # make sure it's not already running
 mkdir -p "${PROJECT_DIR}/../${HELM_REPO_PATH}"
-helm init -c --local-repo-url "http://${HELM_REPO}"
+helm init --skip-refresh -c --local-repo-url "http://${HELM_REPO}"
 helm serve --address ${HELM_REPO} --repo-path "${PROJECT_DIR}/../${HELM_REPO_PATH}" &
 helm repo remove stable 2>/dev/null || true
 check_helm