Skip to content

Commit a80eaa1

Browse files
Andrew Farriesroboquat
Andrew Farries
authored andcommitted
Use gke-gcloud-auth-plugin for kubectl
Start using the kubectl auth plugin for GKE. See https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
1 parent 402894b commit a80eaa1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/image/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,12 @@ RUN sudo chown gitpod: /opt \
148148
&& curl -fsSL https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-388.0.0-linux-x86_64.tar.gz \
149149
| tar -xzvC /opt \
150150
&& /opt/google-cloud-sdk/install.sh --quiet --usage-reporting=false --bash-completion=true \
151-
--additional-components docker-credential-gcr alpha beta \
151+
--additional-components gke-gcloud-auth-plugin docker-credential-gcr alpha beta \
152152
# needed for access to our private registries
153153
&& docker-credential-gcr configure-docker
154154

155+
ENV USE_GKE_GCLOUD_AUTH_PLUGIN=True
156+
155157
# Install tools for gsutil
156158
RUN sudo install-packages \
157159
gcc \

0 commit comments

Comments
 (0)