Merge "[MOLECULE] Pin ansible-base and Jinja pip packages versions"
diff --git a/tools/helm-healer.sh b/tools/helm-healer.sh
index 47479a9..ab79be8 100755
--- a/tools/helm-healer.sh
+++ b/tools/helm-healer.sh
@@ -199,6 +199,18 @@
     sleep 15s
 }
 
+helm_deploy()
+{
+  # Helm v3 need "--create-namespace" to create namespace if don't exist
+  if [[ $(helm version --template "{{.Version}}") =~ ^v3 ]];then
+    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}
+  else
+    msg helm deploy ${RELEASE_PREFIX} local/onap --namespace ${NAMESPACE} ${OVERRIDES} --timeout ${HELM_TIMEOUT}
+    helm deploy ${RELEASE_PREFIX} local/onap --namespace ${NAMESPACE} ${OVERRIDES} --timeout ${HELM_TIMEOUT}
+  fi
+}
+
 # arg: <job name>
 delete_job()
 {
@@ -691,8 +703,7 @@
 if [ -z "$HELM_SKIP_DEPLOY" ] ; then
     # TODO: this is suboptimal - find a way how to deploy only the affected component...
     msg "Redeploy onap..."
-    msg helm deploy ${RELEASE_PREFIX} local/onap --namespace ${NAMESPACE} ${OVERRIDES} --timeout ${HELM_TIMEOUT}
-    helm deploy ${RELEASE_PREFIX} local/onap --namespace ${NAMESPACE} ${OVERRIDES} --timeout ${HELM_TIMEOUT}
+    helm_deploy
 else
     msg "Clean only option used: Skipping redeploy..."
 fi