mirror of https://github.com/k3s-io/k3s
fix hack/local-cluster-up.sh
parent
7945ae68d0
commit
0dab236c05
|
@ -462,6 +462,13 @@ function start_apiserver {
|
||||||
RUNTIME_CONFIG+="admissionregistration.k8s.io/v1alpha1"
|
RUNTIME_CONFIG+="admissionregistration.k8s.io/v1alpha1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ${ADMISSION_CONTROL} == *"AdmissionWebhook"* ]]; then
|
||||||
|
if [[ -n "${RUNTIME_CONFIG}" ]]; then
|
||||||
|
RUNTIME_CONFIG+=","
|
||||||
|
fi
|
||||||
|
RUNTIME_CONFIG+="admissionregistration.k8s.io/v1beta1"
|
||||||
|
fi
|
||||||
|
|
||||||
runtime_config=""
|
runtime_config=""
|
||||||
if [[ -n "${RUNTIME_CONFIG}" ]]; then
|
if [[ -n "${RUNTIME_CONFIG}" ]]; then
|
||||||
runtime_config="--runtime-config=${RUNTIME_CONFIG}"
|
runtime_config="--runtime-config=${RUNTIME_CONFIG}"
|
||||||
|
|
Loading…
Reference in New Issue