Skip to content

Commit bb0dab2

Browse files
authored
Update GH actions [GKE] to install gcloud beta component (#1783)
1 parent d43e971 commit bb0dab2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/acceptance_tests_gke.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
terraform_wrapper: false
6161
- name: "Set up Cloud SDK"
6262
uses: "google-github-actions/setup-gcloud@v0"
63+
with:
64+
install_components: "beta"
6365
- name: "Initialize gcloud SDK"
6466
run: "gcloud init"
6567
- name: Provision GKE Cluster
@@ -72,7 +74,9 @@ jobs:
7274
env
7375
terraform init
7476
terraform apply -auto-approve
75-
echo "GOOGLE_CLUSTER_NAME=`terraform output -raw cluster_name`" >> $GITHUB_ENV
77+
export CLUSTER_NAME=`terraform output -raw cluster_name`
78+
echo "GOOGLE_CLUSTER_NAME=$CLUSTER_NAME" >> $GITHUB_ENV
79+
gcloud beta container clusters update --enable-service-externalips $CLUSTER_NAME --zone $GOOGLE_ZONE
7680
- name: Get GKE Credentials
7781
env:
7882
KUBECONFIG: ${{ github.workspace }}/kubernetes/test-infra/gke/kubeconfig

0 commit comments

Comments
 (0)