Skip to content

Commit

Permalink
ci: Pin helm version in action due to v3.13.0 bug (#4762)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Oct 6, 2023
1 parent c3c1caf commit 28b5d79
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/actions/e2e/cleanup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ runs:
ref: ${{ inputs.git_ref }}
- uses: ./.github/actions/e2e/install-eksctl
with:
eksctl_version: ${{ inputs.eksctl_version }}
version: ${{ inputs.eksctl_version }}
- name: delete-instance-profiles
shell:
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/e2e/create-cluster/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runs:
ref: ${{ inputs.git_ref }}
- uses: ./.github/actions/e2e/install-eksctl
with:
eksctl_version: ${{ inputs.eksctl_version }}
version: ${{ inputs.eksctl_version }}
- name: create iam policies
shell: bash
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/e2e/install-eksctl/action.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: InstallEKSCTL
description: 'Installs eksctl'
inputs:
eksctl_version:
version:
description: "Version of EKSCTL to use for the launched cluster"
required: true
runs:
Expand All @@ -12,9 +12,9 @@ runs:
# for ARM systems, set ARCH to: `arm64`, `armv6` or `armv7`
ARCH=amd64
PLATFORM=$(uname -s)_$ARCH
curl -sLO "https://github.com/weaveworks/eksctl/releases/download/${{ inputs.eksctl_version }}/eksctl_$PLATFORM.tar.gz"
curl -sLO "https://github.com/weaveworks/eksctl/releases/download/${{ inputs.version }}/eksctl_$PLATFORM.tar.gz"
# (Optional) Verify checksum
curl -sL "https://github.com/weaveworks/eksctl/releases/download/${{ inputs.eksctl_version }}/eksctl_checksums.txt" | grep $PLATFORM | sha256sum --check
curl -sL "https://github.com/weaveworks/eksctl/releases/download/${{ inputs.version }}/eksctl_checksums.txt" | grep $PLATFORM | sha256sum --check
tar -xzf eksctl_$PLATFORM.tar.gz -C /tmp && rm eksctl_$PLATFORM.tar.gz
sudo mv /tmp/eksctl /usr/local/bin
6 changes: 5 additions & 1 deletion .github/actions/e2e/install-helm/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: InstallHelm
description: 'Installs helm'
inputs:
version:
description: "Version of Helm to install"
required: true
runs:
using: "composite"
steps:
Expand All @@ -8,7 +12,7 @@ runs:
run: |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
./get_helm.sh --version ${{ inputs.version }}
- name: install helm-diff
shell: bash
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/actions/e2e/install-karpenter/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ runs:
with:
ref: ${{ inputs.git_ref }}
- uses: ./.github/actions/e2e/install-helm
version: v3.12.3 # Pinned to this version since v3.13.0 has issues with anonymous pulls: https://github.com/helm/helm/issues/12423
- name: create karpenter namespace
shell: bash
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/actions/e2e/install-prometheus/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ runs:
with:
ref: ${{ inputs.git_ref }}
- uses: ./.github/actions/e2e/install-helm
version: v3.12.3 # Pinned to this version since v3.13.0 has issues with anonymous pulls: https://github.com/helm/helm/issues/12423
- name: add prometheus repo
shell: bash
run: |
Expand Down

0 comments on commit 28b5d79

Please sign in to comment.