From 55cee2c251f4dab7d1109c8e6757f62b8b689b3f Mon Sep 17 00:00:00 2001 From: Theo Barber-Bany Date: Wed, 13 Mar 2024 17:05:27 +0000 Subject: [PATCH] Updates GCR CredentialProviderConfig This change updates the GCR CredentialProviderConfig to pass the 'get-credentials' argument. It also adds a matcher for "*.pkg.dev" --- ...etes-credential-providers-gcr-credential-provider.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/common/gcp/files/etc-kubernetes-credential-providers-gcr-credential-provider.yaml b/templates/common/gcp/files/etc-kubernetes-credential-providers-gcr-credential-provider.yaml index d86560a674..8813e1cff6 100644 --- a/templates/common/gcp/files/etc-kubernetes-credential-providers-gcr-credential-provider.yaml +++ b/templates/common/gcp/files/etc-kubernetes-credential-providers-gcr-credential-provider.yaml @@ -6,9 +6,13 @@ contents: kind: CredentialProviderConfig providers: - name: gcr-credential-provider + apiVersion: credentialprovider.kubelet.k8s.io/v1 matchImages: - "gcr.io" - "*.gcr.io" + - "*.pkg.dev" - "container.cloud.google.com" - defaultCacheDuration: "0s" - apiVersion: credentialprovider.kubelet.k8s.io/v1 + defaultCacheDuration: "1m" + args: + - get-credentials + - --v=3