Skip to content

Commit

Permalink
Fix the deploy script (knative#3455)
Browse files Browse the repository at this point in the history
Use a local environment variable for the cluster version.
  • Loading branch information
adrcunha authored and knative-prow-robot committed Mar 20, 2019
1 parent 01787a8 commit b6a85c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ source $(dirname $0)/../vendor/github.com/knative/test-infra/scripts/library.sh
: ${PROJECT_ID:="knative-environments"}
readonly PROJECT_ID
readonly K8S_CLUSTER_NAME=${1:?"First argument must be the kubernetes cluster name."}
readonly K8S_CLUSTER_VERSION=latest
readonly K8S_CLUSTER_REGION=us-central1
readonly K8S_CLUSTER_ZONE=a
readonly K8S_CLUSTER_MACHINE=n1-standard-8
Expand Down Expand Up @@ -51,7 +52,7 @@ gcloud --project=${PROJECT_ID} container clusters create \
--enable-basic-auth \
--no-issue-client-certificate \
--no-enable-autoupgrade \
--cluster-version=${SERVING_GKE_VERSION} \
--cluster-version=${K8S_CLUSTER_VERSION} \
--image-type=${SERVING_GKE_IMAGE} \
--zone=${K8S_CLUSTER_REGION}-${K8S_CLUSTER_ZONE} \
--scopes=cloud-platform \
Expand Down

0 comments on commit b6a85c3

Please sign in to comment.