Enabling namespace admission controls

This commit is contained in:
nikhiljindal
2016-08-19 14:20:51 -07:00
parent 5645ca749b
commit 18a8597a4e
4 changed files with 63 additions and 1 deletions

View File

@@ -186,6 +186,9 @@ function create-federation-api-objects {
export FEDERATION_APISERVER_CERT_BASE64="${FEDERATION_APISERVER_CERT_BASE64}"
export FEDERATION_APISERVER_KEY_BASE64="${FEDERATION_APISERVER_KEY_BASE64}"
# Enable the NamespaceLifecycle admission control by default.
export FEDERATION_ADMISSION_CONTROL="${FEDERATION_ADMISSION_CONTROL:-NamespaceLifecycle}"
for file in federation-etcd-pvc.yaml federation-apiserver-{deployment,secrets}.yaml federation-controller-manager-deployment.yaml; do
$template "${manifests_root}/${file}" | $host_kubectl create -f -
done