mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #126306 from siyuanfoundation/env-var
Add KUBE_EMULATED_VERSION env variable to set the emulated-version of scheduler and controller manager.
This commit is contained in:
commit
59776b57e7
@ -2241,6 +2241,9 @@ function start-kube-controller-manager {
|
||||
if [[ -n "${FEATURE_GATES:-}" ]]; then
|
||||
params+=("--feature-gates=${FEATURE_GATES}")
|
||||
fi
|
||||
if [[ -n "${KUBE_EMULATED_VERSION:-}" ]]; then
|
||||
params+=("--emulated-version=kube=${KUBE_EMULATED_VERSION}")
|
||||
fi
|
||||
if [[ -n "${VOLUME_PLUGIN_DIR:-}" ]]; then
|
||||
params+=("--flex-volume-plugin-dir=${VOLUME_PLUGIN_DIR}")
|
||||
fi
|
||||
@ -2454,6 +2457,9 @@ function start-kube-scheduler {
|
||||
if [[ -n "${FEATURE_GATES:-}" ]]; then
|
||||
params+=("--feature-gates=${FEATURE_GATES}")
|
||||
fi
|
||||
if [[ -n "${KUBE_EMULATED_VERSION:-}" ]]; then
|
||||
params+=("--emulated-version=kube=${KUBE_EMULATED_VERSION}")
|
||||
fi
|
||||
|
||||
# Scheduler Component Config takes precedence over some flags.
|
||||
if [[ -n "${KUBE_SCHEDULER_CONFIG:-}" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user