diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 4b797fa42bf..ba4f5eba59e 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -103,7 +103,9 @@ export KUBE_CACHE_MUTATION_DETECTOR KUBE_PANIC_WATCH_DECODE_ERROR="${KUBE_PANIC_WATCH_DECODE_ERROR:-true}" export KUBE_PANIC_WATCH_DECODE_ERROR -ENABLE_ADMISSION_PLUGINS=${ENABLE_ADMISSION_PLUGINS:-""} +# Default list of admission Controllers to invoke prior to persisting objects in cluster +# The order defined here does not matter. +ENABLE_ADMISSION_PLUGINS=${ENABLE_ADMISSION_PLUGINS:-"NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota"} DISABLE_ADMISSION_PLUGINS=${DISABLE_ADMISSION_PLUGINS:-""} ADMISSION_CONTROL_CONFIG_FILE=${ADMISSION_CONTROL_CONFIG_FILE:-""} @@ -507,11 +509,8 @@ function start_apiserver { RUNTIME_CONFIG+="scheduling.k8s.io/v1alpha1=true" fi - - # Admission Controllers to invoke prior to persisting objects in cluster - # - # The order defined here dose not matter. - ENABLE_ADMISSION_PLUGINS=LimitRanger,ServiceAccount${security_admission},DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota,StorageObjectInUseProtection + # Append security_admission plugin + ENABLE_ADMISSION_PLUGINS="${ENABLE_ADMISSION_PLUGINS}${security_admission}" swagger_arg="" if [[ "${ENABLE_SWAGGER_UI}" = true ]]; then