-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2081 from consideRatio/pr/use-modern-gke-auth-plugin
Transition to explicitly use gke auth plugin
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ runs: | |
shell: bash | ||
|
||
# This action use the github official cache mechanism internally | ||
- uses: azure/setup-helm@v3.5 | ||
- uses: azure/setup-helm@v3 | ||
with: | ||
# version is pinned for helm to avoid an automatic update of its version | ||
# which would cause something unexpected without an action on our | ||
|
@@ -80,14 +80,35 @@ runs: | |
# See https://github.com/2i2c-org/infrastructure/issues/1271. | ||
- uses: azure/setup-kubectl@v3 | ||
with: | ||
version: "v1.23.5" | ||
version: "v1.23.16" | ||
|
||
# This action use the github official cache mechanism internally | ||
- name: Install sops | ||
uses: mdgreenwald/[email protected] | ||
with: | ||
version: v3.7.2 | ||
|
||
# Install pre-requisite for "gcloud container clusters get-credentials" | ||
# command with a modern k8s client. | ||
# | ||
# A manual install step has been needed as they opted to not provide it in | ||
# the github-runner image. See | ||
# https://github.com/actions/runner-images/issues/5925#issuecomment-1216417721. | ||
# | ||
# Snippet based on | ||
# https://github.com/actions/runner-images/blob/9753e7301e19e29b89b0622b811bbb9b3891d02e/images/linux/scripts/installers/google-cloud-sdk.sh#L9-L13. | ||
# | ||
- name: Install gke-gcloud-auth-plugin | ||
if: inputs.provider == 'gcp' | ||
run: | | ||
REPO_URL="https://packages.cloud.google.com/apt" | ||
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] $REPO_URL cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list >/dev/null | ||
sudo wget -q https://packages.cloud.google.com/apt/doc/apt-key.gpg -O /usr/share/keyrings/cloud.google.gpg | ||
sudo apt-get update -y | ||
sudo apt-get install -y google-cloud-sdk-gke-gcloud-auth-plugin | ||
shell: bash | ||
|
||
- name: Setup sops credentials to decrypt repo secrets | ||
uses: google-github-actions/auth@v1 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters