Merge pull request #125742 from siyuanfoundation/api-comp-ver1

Add KUBE_EMULATED_VERSION env variable to set the emulated-version of apiserver
This commit is contained in:
Kubernetes Prow Robot 2024-06-26 18:59:33 -07:00 committed by GitHub
commit 480507464f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -256,6 +256,9 @@ function start-kube-apiserver {
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 "${MASTER_ADVERTISE_ADDRESS:-}" ]]; then
params+=" --advertise-address=${MASTER_ADVERTISE_ADDRESS}"
elif [[ -n "${PROJECT_ID:-}" && -n "${TOKEN_URL:-}" && -n "${TOKEN_BODY:-}" && -n "${NODE_NETWORK:-}" ]]; then