From 6d36ba86e92fe7f62a97b80b5589df5aaeb698c5 Mon Sep 17 00:00:00 2001 From: Jason Greathouse Date: Mon, 7 Jan 2019 14:51:41 -0600 Subject: [PATCH] AlwaysPullImages admission plugin option --- cluster/plan.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cluster/plan.go b/cluster/plan.go index 2c70bd79..85de3293 100644 --- a/cluster/plan.go +++ b/cluster/plan.go @@ -199,6 +199,11 @@ func (c *Cluster) BuildKubeAPIProcess(prefixPath string) v3.Process { baseEnabledAdmissionPlugins = append(baseEnabledAdmissionPlugins, "PodSecurityPolicy") } + // AlwaysPullImages + if c.Services.KubeAPI.AlwaysPullImages { + baseEnabledAdmissionPlugins = append(baseEnabledAdmissionPlugins, "AlwaysPullImages") + } + // Admission control plugins // Resolution order: // k8s_defaults.go K8sVersionServiceOptions