From eaa13e734dda0dd39bf6c166b4d691255d6edd36 Mon Sep 17 00:00:00 2001 From: John Gardiner Myers Date: Sat, 30 Nov 2019 19:30:49 -0800 Subject: [PATCH] Fix truncation of admission control plugins list --- nodeup/pkg/model/kube_apiserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodeup/pkg/model/kube_apiserver.go b/nodeup/pkg/model/kube_apiserver.go index 5d7fbaa504..7f88507a22 100644 --- a/nodeup/pkg/model/kube_apiserver.go +++ b/nodeup/pkg/model/kube_apiserver.go @@ -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{} } }