[OOM] add helm3 linting
As OOM supports helm2 and helm3, it's important to check that all new
additions don't break helm3 support.
Issue-ID: OOM-1
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I38307e3b105606eb3dded1933e3a90673078d4dc
[Add helm3 job template boilerplate]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
diff --git a/shell/helm-repo-init.sh b/shell/helm-repo-init.sh
old mode 100644
new mode 100755
index fb2f810..6bf1338
--- a/shell/helm-repo-init.sh
+++ b/shell/helm-repo-init.sh
@@ -2,8 +2,7 @@
# Ensure we fail the job if any steps fail
set -e -o pipefail
-# client only init, tiller will not be installed
-helm init --client-only
-cd kubernetes/ || exit
-make repo
-cd ..
+mkdir -p ".chartstorage"
+chartmuseum --port=6464 --storage="local" --storage-local-rootdir=".chartstorage" &
+helm3 plugin install https://github.com/chartmuseum/helm-push.git
+helm3 repo add local http://localhost:6464
diff --git a/shell/helm2-repo-init.sh b/shell/helm2-repo-init.sh
new file mode 100755
index 0000000..fb2f810
--- /dev/null
+++ b/shell/helm2-repo-init.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+# Ensure we fail the job if any steps fail
+set -e -o pipefail
+
+# client only init, tiller will not be installed
+helm init --client-only
+cd kubernetes/ || exit
+make repo
+cd ..
diff --git a/shell/helm2-verify.sh b/shell/helm2-verify.sh
new file mode 100755
index 0000000..c652a5c
--- /dev/null
+++ b/shell/helm2-verify.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+# Ensure we fail the job if any steps fail
+set -e -o pipefail
+
+cd kubernetes/
+make all