From 0431d9f847dbc96aff6252a0e446c4b23ca3d15b Mon Sep 17 00:00:00 2001 From: Rafa Castelblanque Date: Mon, 10 Oct 2022 11:23:51 +0200 Subject: [PATCH 1/3] Using the new GKE GCloud auth plugin Signed-off-by: Rafa Castelblanque --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 009ab675456..3c89f200e8b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -574,6 +574,8 @@ gke_test: &gke_test if [ -a $GOOGLE_APPLICATION_CREDENTIALS ]; then gcloud -q auth activate-service-account --key-file $GOOGLE_APPLICATION_CREDENTIALS; fi + gcloud components install gke-gcloud-auth-plugin + export USE_GKE_GCLOUD_AUTH_PLUGIN=True - <<: *install_kubectl # A GKE cluster name cannot contain non-alphanumeric characters (nor uppercase letters) - run: From 6507fa964394210712f1158199bf66dd12053377 Mon Sep 17 00:00:00 2001 From: Rafa Castelblanque Date: Mon, 10 Oct 2022 11:25:54 +0200 Subject: [PATCH 2/3] Debug branch on GKE Signed-off-by: Rafa Castelblanque --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3c89f200e8b..f441766faa3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -141,7 +141,7 @@ build_on_tag_or_prerelease: &build_on_tag_or_prerelease tags: only: /^v.*/ branches: - only: prerelease + only: 5427-gcloud-auth-plugin workflows: version: 2 From 6bb77617829822e486862f38aff6874299fdf42b Mon Sep 17 00:00:00 2001 From: Rafa Castelblanque Date: Mon, 10 Oct 2022 12:51:54 +0200 Subject: [PATCH 3/3] Switch back to prerelease branch Signed-off-by: Rafa Castelblanque --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f441766faa3..3c89f200e8b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -141,7 +141,7 @@ build_on_tag_or_prerelease: &build_on_tag_or_prerelease tags: only: /^v.*/ branches: - only: 5427-gcloud-auth-plugin + only: prerelease workflows: version: 2