From: Bartek Grzybowski Date: Thu, 24 Jun 2021 12:50:17 +0000 (+0200) Subject: [TOOLS] Append namespace argument for helm command X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=71c385b0762310a5c764c260f164b2fefafd352b;p=oom%2Foffline-installer.git [TOOLS] Append namespace argument for helm command Change-Id: Icbe1de3b1649b557dbe216d774174121edec8106 Issue-ID: OOM-2770 Signed-off-by: Bartek Grzybowski --- diff --git a/tools/helm-healer.sh b/tools/helm-healer.sh index 7dd9c2eb..a6870fe2 100755 --- a/tools/helm-healer.sh +++ b/tools/helm-healer.sh @@ -190,14 +190,14 @@ get_labels() helm_undeploy() { msg "Undeploy helm release name: ${1}" - helm undeploy ${1} + helm -n ${NAMESPACE} undeploy ${1} sleep 15s } helm_deploy() { - msg helm deploy ${RELEASE_PREFIX} local/onap --create-namespace --namespace ${NAMESPACE} ${OVERRIDES} --timeout ${HELM_TIMEOUT} - helm deploy ${RELEASE_PREFIX} local/onap --create-namespace --namespace ${NAMESPACE} ${OVERRIDES} --timeout ${HELM_TIMEOUT} + msg helm -n ${NAMESPACE} deploy ${RELEASE_PREFIX} local/onap --create-namespace --namespace ${NAMESPACE} ${OVERRIDES} --timeout ${HELM_TIMEOUT} + helm -n ${NAMESPACE} deploy ${RELEASE_PREFIX} local/onap --create-namespace --namespace ${NAMESPACE} ${OVERRIDES} --timeout ${HELM_TIMEOUT} } # arg: @@ -223,7 +223,7 @@ delete_job() get_resources_for_component() { -helm status $1 | awk -f <(cat - <<-'EOD' +helm -n ${NAMESPACE} status $1 | awk -f <(cat - <<-'EOD' BEGIN { work="no" kind=""