[OOM] move helm3 to helm3.5 56/117856/2
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 15 Feb 2021 15:05:20 +0000 (16:05 +0100)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 16 Feb 2021 17:31:25 +0000 (17:31 +0000)
As we'll have several versions of helm3, it's better to clearly state
which version it is.

Issue-ID: OOM-1
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: Idb439717133a7a0fd90d656f6e412d3233b9a04b

packer/provision/helm.yaml

index d8d4437..59d0de2 100644 (file)
@@ -57,9 +57,9 @@
         - name: 'Move helm to /usr/local/bin and set as executable'
           command: 'mv /tmp/helm3_3/linux-amd64/helm /usr/local/bin/helm3.3'
           become: yes
-        - name: 'Check helm3.'
-          command: 'which helm3'
-        - name: 'Check kubectl.'
+        - name: 'Check helm3.3'
+          command: 'which helm3.3'
+        - name: 'Check kubectl'
           command: 'which kubectl'
 
         - name: Install helm 3.3
              which helm3.3
           become: true
 
-    - name: 'Install Helm3 {{helm3_version}}'
+    - name: 'Install Helm3.5 {{helm3_version}}'
       block:
         - name: create directory
           file:
-            path: /tmp/helm3
+            path: /tmp/helm3.5
             state: directory
         - name: 'Fetch tar.gz'
           get_url:
             url: "https://get.helm.sh/helm-v{{helm3_version}}-linux-amd64.tar.gz"
-            dest: /tmp/helm3
+            dest: /tmp/helm3.5
         - name: 'Unarchive'
           unarchive:
-            src: "/tmp/helm3/helm-v{{helm3_version}}-linux-amd64.tar.gz"
-            dest: /tmp/helm3
+            src: "/tmp/helm3.5/helm-v{{helm3_version}}-linux-amd64.tar.gz"
+            dest: /tmp/helm3.5
             remote_src: true
           become: yes
         - name: 'Move helm to /usr/local/bin and set as executable'
-          command: 'mv /tmp/helm3/linux-amd64/helm /usr/local/bin/helm3'
+          command: 'mv /tmp/helm3/linux-amd64/helm /usr/local/bin/helm3.5'
           become: yes
-        - name: 'Check helm3.'
-          command: 'which helm3'
-        - name: 'Check kubectl.'
+        - name: 'Check helm3.5'
+          command: 'which helm3.5'
+        - name: 'Check kubectl'
           command: 'which kubectl'
 
-        - name: Install helm3
+        - name: Install helm3.5
           shell: |
-             echo "----> Installing helm3"
+             echo "----> Installing helm3.5"
              wget 'https://get.helm.sh/helm-v{{helm3_version}}-linux-amd64.tar.gz'
              tar -xvf 'https://get.helm.sh/helm-v{{helm3_version}}-linux-amd64.tar.gz'
-             mv linux-amd64/helm /usr/local/bin/helm3
-             which helm3
+             mv linux-amd64/helm /usr/local/bin/helm3.5
+             which helm3.5
           become: true
 
     - name: 'Install ChartMuseum {{chartmuseum_version}}'