summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-06-29 12:01:20 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-07-01 11:50:25 +0000
commit273244de548fb743654ee930e5ee68a0510f045c (patch)
tree16332936c0a73d185097f5dae5b7a923cb84e06f /tools
parentc14c4c80d065727f1fc7c76a6ea37b1f8f343909 (diff)
[TOOLS] Add option to turn on Helm verbose output
Change-Id: I00723c19f1390fb0d701c5ea0705209b054b818f Issue-ID: OOM-2770 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/helm-healer.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/helm-healer.sh b/tools/helm-healer.sh
index 650c7d12..3fa0d962 100755
--- a/tools/helm-healer.sh
+++ b/tools/helm-healer.sh
@@ -14,6 +14,7 @@ HELM_SKIP_DEPLOY=
VOLUME_STORAGE=
HELM_TIMEOUT=3600s
RELEASE_PREFIX=onap
+HELM_DEBUG=
#
# control variables
@@ -53,6 +54,7 @@ USAGE
[(-c|--component <component release name>)...|
(-D|--delete-all)]
[-C|--clean-only]
+ [-d|--debug]
EXAMPLES
@@ -116,6 +118,8 @@ NOTES
'--clean-only' can be used with any usage: heuristics, explicit component
list or with '--delete-all'. It basically just skips the last step - the
actual redeploy.
+
+ '--debug' will turn on helm's verbose output
EOF
}
@@ -190,14 +194,14 @@ get_labels()
helm_undeploy()
{
msg "Undeploy helm release name: ${1}"
- helm -n ${NAMESPACE} undeploy ${1}
+ helm ${HELM_DEBUG} -n ${NAMESPACE} undeploy ${1}
sleep 15s
}
helm_deploy()
{
- 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}
+ msg helm ${HELM_DEBUG} -n ${NAMESPACE} deploy ${RELEASE_PREFIX} local/onap --create-namespace --namespace ${NAMESPACE} ${OVERRIDES} --timeout ${HELM_TIMEOUT}
+ helm ${HELM_DEBUG} -n ${NAMESPACE} deploy ${RELEASE_PREFIX} local/onap --create-namespace --namespace ${NAMESPACE} ${OVERRIDES} --timeout ${HELM_TIMEOUT}
}
# arg: <job name>
@@ -476,6 +480,9 @@ while [ -n "$1" ] ; do
error "Duplicit argument for 'clean only' option! (IGNORING)"
fi
;;
+ -d|--debug)
+ HELM_DEBUG="--debug"
+ ;;
*)
error "Unknown parameter: $1"
use_help