Skip to content

Commit 4805074

Browse files
authored
Merge pull request kubernetes#125742 from siyuanfoundation/api-comp-ver1
Add KUBE_EMULATED_VERSION env variable to set the emulated-version of apiserver
2 parents 905fdda + 126a47d commit 4805074

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cluster/gce/gci/configure-kubeapiserver.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@ function start-kube-apiserver {
256256
if [[ -n "${FEATURE_GATES:-}" ]]; then
257257
params+=" --feature-gates=${FEATURE_GATES}"
258258
fi
259+
if [[ -n "${KUBE_EMULATED_VERSION:-}" ]]; then
260+
params+=" --emulated-version=kube=${KUBE_EMULATED_VERSION}"
261+
fi
259262
if [[ -n "${MASTER_ADVERTISE_ADDRESS:-}" ]]; then
260263
params+=" --advertise-address=${MASTER_ADVERTISE_ADDRESS}"
261264
elif [[ -n "${PROJECT_ID:-}" && -n "${TOKEN_URL:-}" && -n "${TOKEN_BODY:-}" && -n "${NODE_NETWORK:-}" ]]; then

0 commit comments

Comments
 (0)