Fix incorrect oc run default option#19712
Fix incorrect oc run default option#19712openshift-merge-robot merged 1 commit intoopenshift:masterfrom
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 DetailsNeeds 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