mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 04:36:00 +00:00
Merge pull request #10517 from chrishiestand/gke-scopes
change shell var MINION_SCOPES to user setable
This commit is contained in:
@@ -178,11 +178,11 @@ function prepare-node-upgrade() {
|
||||
detect-minion-names
|
||||
|
||||
# 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
|
||||
|
||||
# Get required node env vars from exiting template.
|
||||
|
Reference in New Issue
Block a user