From 906a88f2d33e6dceeaaed3adf443cb689169f265 Mon Sep 17 00:00:00 2001 From: Andrew Keesler Date: Wed, 23 Sep 2020 14:15:59 -0400 Subject: [PATCH] Set kube-cert-agent imagePullPolicy to IfNotPresent for CI Maybe this will fix kind integration tests? It is what the main Pinniped deployment does? Signed-off-by: Andrew Keesler --- internal/server/server.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/server/server.go b/internal/server/server.go index 3e537ecb..2839b3ab 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -239,9 +239,10 @@ func createKubeCertAgentTemplate(cfg *configapi.KubeCertAgentSpec, serverInstall TerminationGracePeriodSeconds: &terminateImmediately, Containers: []corev1.Container{ { - Name: "sleeper", - Image: *cfg.Image, - Command: []string{"/bin/sleep", "infinity"}, + Name: "sleeper", + Image: *cfg.Image, + ImagePullPolicy: corev1.PullIfNotPresent, + Command: []string{"/bin/sleep", "infinity"}, Resources: corev1.ResourceRequirements{ Limits: corev1.ResourceList{ corev1.ResourceMemory: resource.MustParse("16Mi"),