-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix incorrect oc run default option #19712
Fix incorrect oc run default option #19712
Conversation
bc99210
to
02f61c0
Compare
There is no need to change upstream behavior. Just remove the default generator that we are setting in wrappers.go |
@juanvallejo NewCmdRunWithOptions does not exist upstream. |
e4352ef
to
83d222d
Compare
It still exists in our version of upstream. cmd.Flag("restart").DefValue = "Never" cc @soltysh |
83d222d
to
1b7cc56
Compare
@juanvallejo As suggested, I made the change only the wrapper and it works as intended. Looks like restart policy defaults to always by getRestartPolicy; that would result in getting the correct generator (deployment config). cmd.Flag("restart").DefValue = "Never" would change the default behavior compared to kubectl. |
/test gcp |
/approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: juanvallejo, michaelgugino, soltysh 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. |
oc specific 'RunOptions' supplies incorrect default
generator for non-RestartAlways jobs.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1577770