mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Revert "Fix kube-up for GKE. cluster-version is no more."
This commit is contained in:
parent
44c91b1a39
commit
8bec081776
@ -110,6 +110,7 @@ function verify-prereqs() {
|
|||||||
# GCLOUD
|
# GCLOUD
|
||||||
# CLUSTER_NAME
|
# CLUSTER_NAME
|
||||||
# ZONE
|
# ZONE
|
||||||
|
# CLUSTER_API_VERSION (optional)
|
||||||
# NUM_MINIONS
|
# NUM_MINIONS
|
||||||
# MINION_SCOPES
|
# MINION_SCOPES
|
||||||
function kube-up() {
|
function kube-up() {
|
||||||
@ -144,6 +145,11 @@ function kube-up() {
|
|||||||
"--network=${NETWORK}"
|
"--network=${NETWORK}"
|
||||||
"--scopes=${MINION_SCOPES}"
|
"--scopes=${MINION_SCOPES}"
|
||||||
)
|
)
|
||||||
|
if [[ ! -z "${DOGFOOD_GCLOUD:-}" ]]; then
|
||||||
|
create_args+=("--cluster-version=${CLUSTER_API_VERSION:-}")
|
||||||
|
else
|
||||||
|
create_args+=("--cluster-api-version=${CLUSTER_API_VERSION:-}")
|
||||||
|
fi
|
||||||
|
|
||||||
# Bring up the cluster.
|
# Bring up the cluster.
|
||||||
"${GCLOUD}" "${CMD_GROUP}" container clusters create "${CLUSTER_NAME}" "${create_args[@]}"
|
"${GCLOUD}" "${CMD_GROUP}" container clusters create "${CLUSTER_NAME}" "${create_args[@]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user