File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2241,6 +2241,9 @@ function start-kube-controller-manager {
2241
2241
if [[ -n " ${FEATURE_GATES:- } " ]]; then
2242
2242
params+=(" --feature-gates=${FEATURE_GATES} " )
2243
2243
fi
2244
+ if [[ -n " ${KUBE_EMULATED_VERSION:- } " ]]; then
2245
+ params+=(" --emulated-version=kube=${KUBE_EMULATED_VERSION} " )
2246
+ fi
2244
2247
if [[ -n " ${VOLUME_PLUGIN_DIR:- } " ]]; then
2245
2248
params+=(" --flex-volume-plugin-dir=${VOLUME_PLUGIN_DIR} " )
2246
2249
fi
@@ -2454,6 +2457,9 @@ function start-kube-scheduler {
2454
2457
if [[ -n " ${FEATURE_GATES:- } " ]]; then
2455
2458
params+=(" --feature-gates=${FEATURE_GATES} " )
2456
2459
fi
2460
+ if [[ -n " ${KUBE_EMULATED_VERSION:- } " ]]; then
2461
+ params+=(" --emulated-version=kube=${KUBE_EMULATED_VERSION} " )
2462
+ fi
2457
2463
2458
2464
# Scheduler Component Config takes precedence over some flags.
2459
2465
if [[ -n " ${KUBE_SCHEDULER_CONFIG:- } " ]]; then
You can’t perform that action at this time.
0 commit comments