-
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
Add --local & --dry-run flags to oc set
sub-commands
#14123
Add --local & --dry-run flags to oc set
sub-commands
#14123
Conversation
some `oc set ...` sub-commands do not implement `--dry-run` or `--local` options. This patch adds these missing options to all sub-commands and ensures that backwards compatibility remains for commands that treat the --output option as a ``dry-run flag. ``` $ oc set image dc dctest dctest-1=default/testimage:latest --dry-run NAME REVISION DESIRED CURRENT TRIGGERED BY dctest 1 1 1 config $ oc set image dc dctest dctest-1=default/testimage:latest -o name deploymentconfig/dctest $ oc set build-secret mysecret --push --all -o custom-columns=NAME:.metadata.name NAME gitauthtest repo-base $ oc set build-secret mysecret --push --all --dry-run NAME TYPE FROM LATEST gitauthtest Source Git 1 NAME TYPE FROM LATEST repo-base Docker Git 8 ```
[test] |
flake #14122 re[test] |
Evaluated for origin test up to 763e6ec |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1318/) (Base Commit: f714687) |
1 similar comment
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1318/) (Base Commit: f714687) |
oc set
sub-commandsoc set
sub-commands
[merge] tks @juanvallejo! |
Evaluated for origin merge up to 763e6ec |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/619/) (Base Commit: f24a57f) (Image: devenv-rhel7_6225) |
This requires |
Local means "doesn't require a running server" |
UPSTREAM: kubernetes/kubernetes#36071
Related Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1390139
Related PR (adds
--local
and--dr-run
flags tooc set resources
): #11694Partially addresses: #7899
some
oc set ...
sub-commands do not implement--dry-run
or--local
options. This patch adds these missing options to all sub-commands and
ensures that backwards compatibility remains for commands that treat the
--output option as a ``dry-run flag.
Example
Affected commands
oc set build-hook
oc set image
(Also fixed upstream in fix local resource output when-f
not specified kubernetes/kubernetes#36071)oc set probe
oc set resources
(fixed in minor fixes to oc set resources #11694)oc set triggers
oc set volume
oc set env
oc set deployment-hook
oc set build-secret
oc set route-backends
Restoring #11733