Skip to content

Commit

Permalink
Add gke-gcloud-auth-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Tedezed committed May 16, 2023
1 parent 3489a34 commit b2e99c6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions terragrunt/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ RUN set -e \
&& curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \
&& chmod +x kubectl \
&& mv ./kubectl /bin/kubectl \
&& curl -sSL https://sdk.cloud.google.com | sh
&& curl -sSL https://sdk.cloud.google.com | sh \
&& ln -s /root/google-cloud-sdk/.install/.backup/bin/gcloud /bin/gcloud \
&& ln -s /root/google-cloud-sdk/.install/.backup/bin/gke-gcloud-auth-plugin /bin/gke-gcloud-auth-plugin \
&& gcloud components install gke-gcloud-auth-plugin

RUN ln -s /root/google-cloud-sdk/.install/.backup/bin/gcloud /bin/gcloud
RUN set -x \
&& gcloud version \
&& gke-gcloud-auth-plugin --version \
&& kubectl version --client=true --output=yaml

ENV USE_GKE_GCLOUD_AUTH_PLUGIN=True

0 comments on commit b2e99c6

Please sign in to comment.