fix(backup): use configured imagePullPolicy for backup CronJob#1654
fix(backup): use configured imagePullPolicy for backup CronJob#1654snecklifter wants to merge 1 commit into
Conversation
The backup CronJob controller hardcodes imagePullPolicy to "Always" on backup Job containers. This does not respect the imagePullPolicy setting from DevWorkspaceOperatorConfig, unlike other workspace-related pods. Read imagePullPolicy from the operator config, falling back to "Always" when the field is not explicitly set. Fixes: devfile#1637 Assisted-by: Claude Code Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Chris Brown <chribrow@redhat.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: snecklifter The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @snecklifter. Thanks for your PR. I'm waiting for a devfile member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe backup CronJob controller's ChangesBackup Job ImagePullPolicy from operator config
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related issues
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
imagePullPolicyfromDevWorkspaceOperatorConfigfor backup Job containers instead of hardcoding"Always""Always"when the field is not explicitly configured, preserving existing default behaviorimagePullPolicyscenariosFixes #1637
Test plan
imagePullPolicy(e.g.IfNotPresent)Alwaysbehavior whenimagePullPolicyis not setgo test ./controllers/backupcronjob/...)go vetcleanAssisted-by: Claude Code
Summary by CodeRabbit
New Features
Tests