From 71c385b0762310a5c764c260f164b2fefafd352b Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Thu, 24 Jun 2021 14:50:17 +0200 Subject: [TOOLS] Append namespace argument for helm command Change-Id: Icbe1de3b1649b557dbe216d774174121edec8106 Issue-ID: OOM-2770 Signed-off-by: Bartek Grzybowski --- tools/helm-healer.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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="" -- cgit 1.2.3-korg