summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-06-24 14:50:17 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-07-01 11:50:06 +0000
commit1c7878838cd19ef7f6a58936ad552eec18f52716 (patch)
tree3846b5441937e5d7dacbaa8703008528bfef165f /tools
parent0e2f968d4997c0e5afe35d81087bc7d1b239de69 (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>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/helm-healer.sh8
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=""