mirror of https://github.com/kubernetes/kops.git
Remove Initializers from default admission plugins
This commit is contained in:
parent
09acd56675
commit
32f196fd71
|
|
@ -255,7 +255,7 @@ func (b *KubeAPIServerOptionsBuilder) BuildOptions(o interface{}) error {
|
|||
}
|
||||
// Based on recommendations from:
|
||||
// https://kubernetes.io/docs/admin/admission-controllers/#is-there-a-recommended-set-of-admission-controllers-to-use
|
||||
if b.IsKubernetesGTE("1.10") {
|
||||
if b.IsKubernetesGTE("1.10") && b.IsKubernetesLT("1.12") {
|
||||
c.EnableAdmissionPlugins = []string{
|
||||
"Initializers",
|
||||
"NamespaceLifecycle",
|
||||
|
|
@ -270,6 +270,22 @@ func (b *KubeAPIServerOptionsBuilder) BuildOptions(o interface{}) error {
|
|||
"ResourceQuota",
|
||||
}
|
||||
}
|
||||
// Based on recommendations from:
|
||||
// https://kubernetes.io/docs/admin/admission-controllers/#is-there-a-recommended-set-of-admission-controllers-to-use
|
||||
if b.IsKubernetesGTE("1.12") {
|
||||
c.EnableAdmissionPlugins = []string{
|
||||
"NamespaceLifecycle",
|
||||
"LimitRanger",
|
||||
"ServiceAccount",
|
||||
"PersistentVolumeLabel",
|
||||
"DefaultStorageClass",
|
||||
"DefaultTolerationSeconds",
|
||||
"MutatingAdmissionWebhook",
|
||||
"ValidatingAdmissionWebhook",
|
||||
"NodeRestriction",
|
||||
"ResourceQuota",
|
||||
}
|
||||
}
|
||||
|
||||
// We make sure to disable AnonymousAuth from when it was introduced
|
||||
if b.IsKubernetesGTE("1.5") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue