[BUILD-1606] feat: map S2I ForcePull to pull-policy parameter - #148
Open
psrvere wants to merge 2 commits into
Open
[BUILD-1606] feat: map S2I ForcePull to pull-policy parameter#148psrvere wants to merge 2 commits into
psrvere wants to merge 2 commits into
Conversation
…D-1606) Replace the S2I ForcePull warning with actual parameter mapping. When a BuildConfig has SourceStrategy.ForcePull=true, the converted Shipwright Build now includes pull-policy="always" as a strategy parameter. Remove ForcePullFlagS2iRFE from rfe.go as it is now implemented. Co-Authored-By: Claude Code <noreply@anthropic.com> Signed-off-by: Prateek Singh Rathore <prateek.singh.rathore@gmail.com>
MockClient.Apply referenced runtime.ApplyConfiguration/client.ApplyOption, which only exist under go.work resolution (controller-runtime v0.23.3 via crane). crane-lib pins v0.21.0, so CI standalone builds failed. Also resolves leftover conflict markers in buildconfigs.go param constants.
1 task
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughSource strategy conversion now maps ChangesSource ForcePull conversion
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant SourceStrategy
participant ConvertOptions
participant ShipwrightBuild
SourceStrategy->>ConvertOptions: provide ForcePull
ConvertOptions->>ShipwrightBuild: append pull-policy=always
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
This was referenced Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SourceStrategy.ForcePull=trueto the Shipwright S2I strategy parampull-policy=alwaysvia newprocessSourceStrategyForcePull()(replaces the previous warn-only behavior)S2iForcePullParamName = "pull-policy"constant;ForcePull=falseadds no param (strategy defaultif-not-presentpreserved)ForcePullFlagS2iRFEconstant fromconvert/rfe.goTest plan
GOWORK=off go test ./convert/...)pull-policy=alwaysapplied on OpenShift; BuildRuntest-conversion-run-1SucceededDependencies
pull-policyparam to the source-to-image ClusterBuildStrategy)Related
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
ForcePullsetting by applying analwaysimage pull policy during conversion.Bug Fixes
Tests
ForcePullis enabled or disabled.