Skip to content

Commit 59776b5

Browse files
authored
Merge pull request kubernetes#126306 from siyuanfoundation/env-var
Add KUBE_EMULATED_VERSION env variable to set the emulated-version of scheduler and controller manager.
2 parents d97cf3a + e79d20d commit 59776b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cluster/gce/gci/configure-helper.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,6 +2241,9 @@ function start-kube-controller-manager {
22412241
if [[ -n "${FEATURE_GATES:-}" ]]; then
22422242
params+=("--feature-gates=${FEATURE_GATES}")
22432243
fi
2244+
if [[ -n "${KUBE_EMULATED_VERSION:-}" ]]; then
2245+
params+=("--emulated-version=kube=${KUBE_EMULATED_VERSION}")
2246+
fi
22442247
if [[ -n "${VOLUME_PLUGIN_DIR:-}" ]]; then
22452248
params+=("--flex-volume-plugin-dir=${VOLUME_PLUGIN_DIR}")
22462249
fi
@@ -2454,6 +2457,9 @@ function start-kube-scheduler {
24542457
if [[ -n "${FEATURE_GATES:-}" ]]; then
24552458
params+=("--feature-gates=${FEATURE_GATES}")
24562459
fi
2460+
if [[ -n "${KUBE_EMULATED_VERSION:-}" ]]; then
2461+
params+=("--emulated-version=kube=${KUBE_EMULATED_VERSION}")
2462+
fi
24572463

24582464
# Scheduler Component Config takes precedence over some flags.
24592465
if [[ -n "${KUBE_SCHEDULER_CONFIG:-}" ]]; then

0 commit comments

Comments
 (0)