fix hack/local-cluster-up.sh

pull/6/head
Chao Xu 2017-11-19 12:19:03 -08:00
parent 7945ae68d0
commit 0dab236c05
1 changed files with 7 additions and 0 deletions

View File

@ -462,6 +462,13 @@ function start_apiserver {
RUNTIME_CONFIG+="admissionregistration.k8s.io/v1alpha1"
fi
if [[ ${ADMISSION_CONTROL} == *"AdmissionWebhook"* ]]; then
if [[ -n "${RUNTIME_CONFIG}" ]]; then
RUNTIME_CONFIG+=","
fi
RUNTIME_CONFIG+="admissionregistration.k8s.io/v1beta1"
fi
runtime_config=""
if [[ -n "${RUNTIME_CONFIG}" ]]; then
runtime_config="--runtime-config=${RUNTIME_CONFIG}"