stop using AlwaysAdmit admission

This commit is contained in:
xuzhonghu
2018-03-13 20:02:56 +08:00
parent a7d6340ad2
commit 70d5af6e7b
6 changed files with 0 additions and 12 deletions

View File

@@ -59,7 +59,6 @@ import (
kubeletclient "k8s.io/kubernetes/pkg/kubelet/client"
"k8s.io/kubernetes/pkg/master"
"k8s.io/kubernetes/pkg/version"
"k8s.io/kubernetes/plugin/pkg/admission/admit"
)
// Config is a struct of configuration directives for NewMasterComponents.
@@ -281,7 +280,6 @@ func NewMasterConfig() *master.Config {
kubeVersion := version.Get()
genericConfig.Version = &kubeVersion
genericConfig.Authorization.Authorizer = authorizerfactory.NewAlwaysAllowAuthorizer()
genericConfig.AdmissionControl = admit.NewAlwaysAdmit()
genericConfig.EnableMetrics = true
err := etcdOptions.ApplyWithStorageFactoryTo(storageFactory, genericConfig)