Skip to content

Commit

Permalink
ltsr migrate to aws (#162)
Browse files Browse the repository at this point in the history
Signed-off-by: Allen Li <[email protected]>
  • Loading branch information
qpdpQ authored Apr 19, 2023
1 parent e826ae8 commit 99b40b1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions common/Makefile.common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99b40b1

Please sign in to comment.