Skip to content

Commit 05f7a59

Browse files
fix: Downgrade helm version in CI (#3984)
* fix: Downgrade helm version in CI * fix: helm version in helmlint * Downgrade helm for template tests * Remove previous helm installation and clear cache
1 parent 1c2d7a1 commit 05f7a59

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/pull_requests.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ jobs:
105105
needs: [chart-changed]
106106
steps:
107107
- uses: actions/checkout@v4
108+
- name: Setup Helm
109+
run: |
110+
sudo rm -f /usr/local/bin/helm
111+
sudo rm -rf ~/.cache/helm ~/.config/helm
112+
curl -fsSL https://get.helm.sh/helm-v3.18.4-linux-amd64.tar.gz -o helm.tar.gz
113+
tar -zxvf helm.tar.gz
114+
sudo mv linux-amd64/helm /usr/local/bin/helm
115+
helm version
108116
- name: Lint helm chart
109117
if: needs.chart-changed.outputs.any_changed == 'true'
110118
run: |
@@ -179,6 +187,14 @@ jobs:
179187
with:
180188
go-version: "1.22"
181189
cache-dependency-path: "**/go.sum"
190+
- name: Setup Helm
191+
run: |
192+
sudo rm -f /usr/local/bin/helm
193+
sudo rm -rf ~/.cache/helm ~/.config/helm
194+
curl -fsSL https://get.helm.sh/helm-v3.18.4-linux-amd64.tar.gz -o helm.tar.gz
195+
tar -zxvf helm.tar.gz
196+
sudo mv linux-amd64/helm /usr/local/bin/helm
197+
helm version
182198
- name: test
183199
if: needs.chart-changed.outputs.any_changed == 'true'
184200
run: make test-templates

.github/workflows/workflow-integration-tests.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
run: |
2626
echo "kind_images=$(jq -cM '.supported' kind_images.json)" >> $GITHUB_OUTPUT
2727
echo "default_kind_image=$(jq -cM '.default' kind_images.json)" >> $GITHUB_OUTPUT
28+
- name: Setup Helm
29+
run: |
30+
sudo rm -f /usr/local/bin/helm
31+
sudo rm -rf ~/.cache/helm ~/.config/helm
32+
curl -fsSL https://get.helm.sh/helm-v3.18.4-linux-amd64.tar.gz -o helm.tar.gz
33+
tar -zxvf helm.tar.gz
34+
sudo mv linux-amd64/helm /usr/local/bin/helm
35+
helm version
2836
- name: Print kind images
2937
run: echo "Kind images ${{ steps.set_kind_images.outputs.kind_images }}"
3038
- id: set_test_names
@@ -77,6 +85,14 @@ jobs:
7785
curl --retry 10 --retry-max-time 120 --retry-delay 5 -Lo ./kind https://kind.sigs.k8s.io/dl/v${{env.KIND_VERSION}}/kind-linux-amd64
7886
chmod +x ./kind
7987
sudo mv ./kind /usr/local/bin/kind
88+
- name: Setup Helm
89+
run: |
90+
sudo rm -f /usr/local/bin/helm
91+
sudo rm -rf ~/.cache/helm ~/.config/helm
92+
curl -fsSL https://get.helm.sh/helm-v3.18.4-linux-amd64.tar.gz -o helm.tar.gz
93+
tar -zxvf helm.tar.gz
94+
sudo mv linux-amd64/helm /usr/local/bin/helm
95+
helm version
8096
- name: Run integration test - ${{ matrix.test_name }}
8197
working-directory: ./tests/integration/
8298
run: make test TEST_NAME=^${{matrix.test_name}}$ KIND_NODE_IMAGE=${{matrix.kind_image}}
@@ -102,6 +118,14 @@ jobs:
102118
curl --retry 10 --retry-max-time 120 --retry-delay 5 -Lo ./kind https://kind.sigs.k8s.io/dl/v${{env.KIND_VERSION}}/kind-linux-amd64
103119
chmod +x ./kind
104120
sudo mv ./kind /usr/local/bin/kind
121+
- name: Setup Helm
122+
run: |
123+
sudo rm -f /usr/local/bin/helm
124+
sudo rm -rf ~/.cache/helm ~/.config/helm
125+
curl -fsSL https://get.helm.sh/helm-v3.18.4-linux-amd64.tar.gz -o helm.tar.gz
126+
tar -zxvf helm.tar.gz
127+
sudo mv linux-amd64/helm /usr/local/bin/helm
128+
helm version
105129
- name: Run integration test - ${{ matrix.test_name }}
106130
working-directory: ./tests/integration/
107131
run: make test TEST_NAME=^${{matrix.test_name}}$ KIND_NODE_IMAGE=${{matrix.kind_image}}

0 commit comments

Comments
 (0)