Skip to content

Commit

Permalink
Merge pull request #85344 from jkaniuk/prune-whitelist
Browse files Browse the repository at this point in the history
Addon Manager: Fix parsing KUBECTL_EXTRA_PRUNE_WHITELIST
  • Loading branch information
k8s-ci-robot committed Nov 18, 2019
2 parents beaf3a2 + 936ee6f commit 5bac42b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/addons/addon-manager/kube-addons.sh
Expand Up @@ -120,7 +120,7 @@ function generate_prune_whitelist_flags() {
# besides the default ones.
extra_prune_whitelist=
if [ -n "${KUBECTL_EXTRA_PRUNE_WHITELIST:-}" ]; then
extra_prune_whitelist=( "${KUBECTL_EXTRA_PRUNE_WHITELIST:-}" )
read -ra extra_prune_whitelist <<< "${KUBECTL_EXTRA_PRUNE_WHITELIST}"
fi
prune_whitelist=( "${KUBECTL_PRUNE_WHITELIST[@]}" "${extra_prune_whitelist[@]}" )
prune_whitelist_flags=$(generate_prune_whitelist_flags "${prune_whitelist[@]}")
Expand Down

0 comments on commit 5bac42b

Please sign in to comment.