Skip to content

Commit

Permalink
fix(supportbundle): update support bundle image pull policy to if not…
Browse files Browse the repository at this point in the history
… present

ref: longhorn/longhorn 7988

Signed-off-by: Jack Lin <jack.lin@suse.com>
  • Loading branch information
ChanYiLin authored and innobead committed Feb 22, 2024
1 parent f59c4d8 commit 43013ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller/support_bundle_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 43013ae

Please sign in to comment.