Update configure-helper.sh to early exit from start-kube-scheduler if kube-scheduler is deployed through CRP.

This commit is contained in:
Vinayak Goyal 2020-11-24 09:57:20 -08:00
parent aa79d78c7e
commit 18644cb1b2

View File

@ -2109,6 +2109,10 @@ function start-kube-controller-manager {
# Assumed vars (which are calculated in compute-master-manifest-variables)
# DOCKER_REGISTRY
function start-kube-scheduler {
if [[ "${KUBE_SCHEDULER_CRP:-}" == "true" ]]; then
echo "kube-scheduler is configured to be deployed through CRP."
return
fi
echo "Start kubernetes scheduler"
create-kubeconfig "kube-scheduler" "${KUBE_SCHEDULER_TOKEN}"
# User and group should never contain characters that need to be quoted