Skip to content

Commit

Permalink
Ensuring endpointslice controller starts up as part of cluster up whe…
Browse files Browse the repository at this point in the history
…n all alpha feature gates are enabled
  • Loading branch information
robscott committed Sep 5, 2019
1 parent 100608f commit dc0c81a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions cluster/gce/config-default.sh
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions cluster/gce/config-test.sh
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions cluster/gce/util.sh
Expand Up @@ -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
Expand Down

0 comments on commit dc0c81a

Please sign in to comment.