Ensuring endpointslice controller starts up as part of cluster up when all alpha feature gates are enabled

This commit is contained in:
Rob Scott 2019-09-05 09:16:13 -07:00
parent 100608f441
commit dc0c81a5f1
No known key found for this signature in database
GPG Key ID: 05B37CFC2CDE8B85
3 changed files with 7 additions and 0 deletions

View File

@ -247,6 +247,7 @@ RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-}"
if [[ "${KUBE_FEATURE_GATES:-}" == "AllAlpha=true" ]]; then
RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-api/all=true}"
RUN_CONTROLLERS="${RUN_CONTROLLERS:-*,endpointslice}"
fi
# Optional: set feature gates

View File

@ -136,6 +136,7 @@ RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-}"
if [[ "${KUBE_FEATURE_GATES:-}" == "AllAlpha=true" ]]; then
RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-api/all=true}"
RUN_CONTROLLERS="${RUN_CONTROLLERS:-*,endpointslice}"
fi
# Optional: set feature gates

View File

@ -1283,6 +1283,11 @@ EOF
if [ -n "${FEATURE_GATES:-}" ]; then
cat >>$file <<EOF
FEATURE_GATES: $(yaml-quote ${FEATURE_GATES})
EOF
fi
if [ -n "${RUN_CONTROLLERS:-}" ]; then
cat >>$file <<EOF
RUN_CONTROLLERS: $(yaml-quote ${RUN_CONTROLLERS})
EOF
fi
if [ -n "${PROVIDER_VARS:-}" ]; then