From 43013ae1543110ef92b354ae45e407e24702cd2a Mon Sep 17 00:00:00 2001 From: Jack Lin Date: Thu, 22 Feb 2024 11:07:26 +0800 Subject: [PATCH] fix(supportbundle): update support bundle image pull policy to if not present ref: longhorn/longhorn 7988 Signed-off-by: Jack Lin --- controller/support_bundle_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/support_bundle_controller.go b/controller/support_bundle_controller.go index 88d58877c1..02433cea3b 100644 --- a/controller/support_bundle_controller.go +++ b/controller/support_bundle_controller.go @@ -680,7 +680,7 @@ func (c *SupportBundleController) newSupportBundleManager(supportBundle *longhor Name: "manager", Image: supportBundle.Status.Image, Args: []string{"/usr/bin/support-bundle-kit", "manager"}, - ImagePullPolicy: corev1.PullPolicy(api.PullAlways), + ImagePullPolicy: corev1.PullPolicy(api.PullIfNotPresent), Env: []corev1.EnvVar{ { Name: "POD_NAMESPACE", @@ -724,7 +724,7 @@ func (c *SupportBundleController) newSupportBundleManager(supportBundle *longhor }, { Name: "SUPPORT_BUNDLE_IMAGE_PULL_POLICY", - Value: string(api.PullAlways), + Value: string(api.PullIfNotPresent), }, { Name: "SUPPORT_BUNDLE_REGISTRY_SECRET",