Fix truncation of admission control plugins list

This commit is contained in:
John Gardiner Myers 2019-11-30 19:30:49 -08:00
parent 2e572edf82
commit eaa13e734d
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ func (b *KubeAPIServerBuilder) buildPod() (*v1.Pod, error) {
// @note: it's fine to use AdmissionControl here and it's not populated by the model, thus the only data could have come from the cluster spec
c := b.Cluster.Spec.KubeAPIServer
if len(c.AdmissionControl) > 0 {
copy(c.EnableAdmissionPlugins, c.AdmissionControl)
c.EnableAdmissionPlugins = append([]string(nil), c.AdmissionControl...)
c.AdmissionControl = []string{}
}
}