Use default helm version if version not provided 49/5149/1
authorMohamed Abukar <abukar.mohamed@nokia.com>
Wed, 25 Nov 2020 06:58:42 +0000 (08:58 +0200)
committerMohamed Abukar <abukar.mohamed@nokia.com>
Wed, 25 Nov 2020 06:58:54 +0000 (08:58 +0200)
Change-Id: I0c3c2233decc6a65a386e4416e668c9fbbdc81cf
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
pkg/helm/helm.go

index 806a6c8..a972e75 100755 (executable)
@@ -47,6 +47,9 @@ type Helm struct {
 func GetHelmVersion() {
         var temp string
         temp = os.Getenv("HELMVERSION")
+        if temp == "" {
+                temp = "HELMVERSION=v2.12.3"
+        }
         appmgr.Logger.Info("Inside new Helm")
         temp = strings.TrimLeft(temp,"v")
         cm.EnvHelmVersion = string(temp[0:1]) //s.TrimRight(temp, ".")