Remove NamespaceAutoProvision which is deprecated

According to https://github.com/kubernetes/kubernetes/blob/master/docs/admin/admission-controllers.md
NamespaceAutoProvision is deprecated, keeping it in the script tends to give a bad practice where namespace are auto created.

Suggest to remove it.
pull/6/head
runseb 2015-12-17 11:05:20 +01:00
parent 5b6a7c6012
commit 6fa56de691
1 changed files with 2 additions and 2 deletions

View File

@ -214,9 +214,9 @@ function set_service_accounts {
function start_apiserver {
# Admission Controllers to invoke prior to persisting objects in cluster
if [[ -z "${ALLOW_SECURITY_CONTEXT}" ]]; then
ADMISSION_CONTROL=NamespaceLifecycle,NamespaceAutoProvision,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota
else
ADMISSION_CONTROL=NamespaceLifecycle,NamespaceAutoProvision,LimitRanger,ServiceAccount,ResourceQuota
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota
fi
# This is the default dir and filename where the apiserver will generate a self-signed cert
# which should be able to be used as the CA to verify itself