Skip to content

Commit 1583bd6

Browse files
authored
Merge pull request kubernetes#82397 from robscott/endpointslice-gce-up
Improving GCE cluster up logic for EndpointSlice Controller
2 parents 38752f7 + 66196c1 commit 1583bd6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cluster/gce/config-default.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-}"
247247

248248
if [[ "${KUBE_FEATURE_GATES:-}" == "AllAlpha=true" ]]; then
249249
RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-api/all=true}"
250+
fi
251+
252+
# If feature gates includes AllAlpha or EndpointSlice, and EndpointSlice has not been disabled, add EndpointSlice controller to list of controllers to run.
253+
if [[ (( "${KUBE_FEATURE_GATES:-}" == *"AllAlpha=true"* ) || ( "${KUBE_FEATURE_GATES:-}" == *"EndpointSlice=true"* )) && "${KUBE_FEATURE_GATES:-}" != *"EndpointSlice=false"* ]]; then
250254
RUN_CONTROLLERS="${RUN_CONTROLLERS:-*,endpointslice}"
251255
fi
252256

cluster/gce/config-test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-}"
136136

137137
if [[ "${KUBE_FEATURE_GATES:-}" == "AllAlpha=true" ]]; then
138138
RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-api/all=true}"
139+
fi
140+
141+
# If feature gates includes AllAlpha or EndpointSlice, and EndpointSlice has not been disabled, add EndpointSlice controller to list of controllers to run.
142+
if [[ (( "${KUBE_FEATURE_GATES:-}" == *"AllAlpha=true"* ) || ( "${KUBE_FEATURE_GATES:-}" == *"EndpointSlice=true"* )) && "${KUBE_FEATURE_GATES:-}" != *"EndpointSlice=false"* ]]; then
139143
RUN_CONTROLLERS="${RUN_CONTROLLERS:-*,endpointslice}"
140144
fi
141145

0 commit comments

Comments
 (0)