Download helm3 in current path 27/116327/4
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Fri, 11 Dec 2020 23:54:40 +0000 (15:54 -0800)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Sat, 12 Dec 2020 03:28:59 +0000 (03:28 +0000)
For some reason, the helm3 sources can't be
uncompressed from /tmp compared to the helm ones.
Download helm3 sources in the current dir instead.

Issue-ID: CIMAN-33
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: Ib4e33279a1e40a7d7b90ee47f54560f252173c1d

packer/provision/helm.yaml

index 0b14bee..459fbb1 100644 (file)
@@ -46,7 +46,7 @@
         - name: 'Fetch tar.gz'
           get_url:
             url: "https://get.helm.sh/helm-v{{helm3_version}}-linux-amd64.tar.gz"
-            dest: "/tmp/helm3/helm-v{{helm3_version}}-linux-amd64.tar.gz"
+            dest: /tmp/helm3
         - name: 'Unarchive'
           unarchive:
             src: "/tmp/helm3/helm-v{{helm3_version}}-linux-amd64.tar.gz"
         - name: 'Check kubectl.'
           command: 'which kubectl'
 
+        - name: Install helm3
+          shell: |
+             echo "----> Installing helm3"
+             wget 'https://get.helm.sh/helm-v3.3.4-linux-amd64.tar.gz'
+             tar -xvf 'https://get.helm.sh/helm-v3.3.4-linux-amd64.tar.gz'
+             mv linux-amd64/helm /usr/local/bin/helm3
+             which helm3
+          become: true
+
     - name: 'Install ChartMuseum {{chartmuseum_version}}'
       block:
         - name: 'Fetch bin'