Merge pull request #10517 from chrishiestand/gke-scopes
change shell var MINION_SCOPES to user setable
This commit is contained in:
@@ -685,11 +685,11 @@ function kube-up {
|
||||
echo "Creating minions."
|
||||
|
||||
# TODO(mbforbes): Refactor setting scope flags.
|
||||
local -a scope_flags=()
|
||||
if (( "${#MINION_SCOPES[@]}" > 0 )); then
|
||||
scope_flags=("--scopes" "$(join_csv ${MINION_SCOPES[@]})")
|
||||
local scope_flags=
|
||||
if [ -n "${MINION_SCOPES}" ]; then
|
||||
scope_flags="--scopes ${MINION_SCOPES}"
|
||||
else
|
||||
scope_flags=("--no-scopes")
|
||||
scope_flags="--no-scopes"
|
||||
fi
|
||||
|
||||
write-node-env
|
||||
@@ -1028,11 +1028,11 @@ function prepare-push() {
|
||||
write-node-env
|
||||
|
||||
# TODO(mbforbes): Refactor setting scope flags.
|
||||
local -a scope_flags=()
|
||||
if (( "${#MINION_SCOPES[@]}" > 0 )); then
|
||||
scope_flags=("--scopes" "${MINION_SCOPES[@]}")
|
||||
local scope_flags=
|
||||
if [ -n "${MINION_SCOPES}" ]; then
|
||||
scope_flags="--scopes ${MINION_SCOPES}"
|
||||
else
|
||||
scope_flags=("--no-scopes")
|
||||
scope_flags="--no-scopes"
|
||||
fi
|
||||
|
||||
# Ugly hack: Since it is not possible to delete instance-template that is currently
|
||||
|
Reference in New Issue
Block a user