diff --git a/common/Makefile.common.mk b/common/Makefile.common.mk index 4b6282a..e17d5fc 100644 --- a/common/Makefile.common.mk +++ b/common/Makefile.common.mk @@ -24,11 +24,15 @@ CLUSTER ?= bedrock-prow activate-serviceaccount: ifdef GOOGLE_APPLICATION_CREDENTIALS - gcloud auth activate-service-account --key-file="$(GOOGLE_APPLICATION_CREDENTIALS)" + gcloud auth activate-service-account --key-file="$(GOOGLE_APPLICATION_CREDENTIALS)" || true endif get-cluster-credentials: activate-serviceaccount - gcloud container clusters get-credentials "$(CLUSTER)" --project="$(PROJECT)" --zone="$(ZONE)" + mkdir -p ~/.kube; cp -v /etc/kubeconfig/config ~/.kube; kubectl config use-context default; kubectl get nodes; echo going forward retiring google cloud + +ifdef GOOGLE_APPLICATION_CREDENTIALS + gcloud container clusters get-credentials "$(CLUSTER)" --project="$(PROJECT)" --zone="$(ZONE)" || true +endif config-docker: get-cluster-credentials @common/scripts/config_docker.sh