VOLUME_STORAGE=
HELM_TIMEOUT=3600s
RELEASE_PREFIX=onap
+HELM_DEBUG=
#
# control variables
[(-c|--component <component release name>)...|
(-D|--delete-all)]
[-C|--clean-only]
+ [-d|--debug]
EXAMPLES
'--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
}
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>
error "Duplicit argument for 'clean only' option! (IGNORING)"
fi
;;
+ -d|--debug)
+ HELM_DEBUG="--debug"
+ ;;
*)
error "Unknown parameter: $1"
use_help