diff options
author | 2021-06-24 14:50:17 +0200 | |
---|---|---|
committer | 2021-07-01 11:53:11 +0000 | |
commit | 71c385b0762310a5c764c260f164b2fefafd352b (patch) | |
tree | fc9651523ad7a680bc540b819db193127d77955b | |
parent | 0e73b6fb8f8717900f904d9c71bc98f87c4dbe75 (diff) |
[TOOLS] Append namespace argument for helm command
Change-Id: Icbe1de3b1649b557dbe216d774174121edec8106
Issue-ID: OOM-2770
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-rwxr-xr-x | tools/helm-healer.sh | 8 |
1 files 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: <job name> @@ -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="" |