New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ForcePull to BuildOverrides #123
Add ForcePull to BuildOverrides #123
Conversation
/assign @adambkaplan @gabemontero |
in case it is masked by github's PR review ... I think the comment from 13 days ago around line 45 of overrides.go was resolved incorrectly @coreydaley @adambkaplan the default should be IfNotPresent, which is what k8s go doc says, and hence I don't think |
If the system admin has set ForcePull to false, shouldn't we propagate that down also? |
duh ... correct ... also updated my comment above ... feel free to resolve
ok for this one, the user does not have access to set pull always, etc. ... they just control force pull, and force pull should either translate to always or ifnotpresent Your code still has |
Yep, I will fix that, I think it got reset when I made a recent change :( |
@gabemontero changed to IfNotPresent instead of Never |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default pull policy looks good @coreydaley
one more suggestion came to me ... add a unit test that confirms false (and not set at all for that matter perhaps) results in pull if not present being set
LGTM. Let’s wait and see if @adambkaplan wants to chime in. If he
doesn’t by scrum tomorrow we’ll ask him then.
…On Wed, Jul 8, 2020 at 2:12 PM Corey Daley ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In pkg/build/controller/build/overrides/overrides_test.go
<#123 (comment)>
:
> @@ -34,7 +34,8 @@ func TestBuildOverrideForcePull(t *testing.T) {
ops := []admission.Operation{admission.Create, admission.Update}
for _, test := range tests {
for _, op := range ops {
- overrides := BuildOverrides{Config: &openshiftcontrolplanev1.BuildOverridesConfig{ForcePull: true}}
+ truePtr := true
updated and pushed
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#123 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3NU5A6OD7IXPPLTQHN3HLR2SZINANCNFSM4OIXBG4Q>
.
|
@adambkaplan Do you have any comments on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coreydaley nit in the code and PR title. These are consumed by the public in our changelogs.
Suggested change: "Allow ForcePull to be set to False in BuildOverrides".
/approve |
https://issues.redhat.com/browse/BUILD-96 fixing test, BuildSpec.TriggeredBy json now has omitempty
@adambkaplan @gabemontero all comments have been addressed and all requested updates completed. ptal |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adambkaplan, coreydaley, gabemontero The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
/retitle Add ForcePull to BuildOverrides |
Use the ForcePull pointer from BuildOverridesConfig
https://issues.redhat.com/browse/BUILD-96