-
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
UPSTREAM: 36071: Add --local & --dry-run flags to oc set
sub-commands
#11733
UPSTREAM: 36071: Add --local & --dry-run flags to oc set
sub-commands
#11733
Conversation
@@ -134,13 +134,11 @@ func (o *ImageOptions) Complete(f *cmdutil.Factory, cmd *cobra.Command, args []s | |||
ContinueOnError(). | |||
NamespaceParam(cmdNamespace).DefaultNamespace(). | |||
FilenameParam(enforceNamespace, o.Recursive, o.Filenames...). | |||
SelectorParam(o.Selector). | |||
ResourceTypeOrNameArgs(o.All, o.Resources...). | |||
Latest(). |
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.
Latest() does a server fetch, right? I thought the point of Local was to avoid that
oc set image
fix local resource output
@liggitt Thanks for the feedback, review comment addressed |
oc set image
fix local resource outputoc set image
fix local resource output
2d0a1c5
to
24bbf78
Compare
@ncdc i'm fine waiting for the rebase |
[test] |
conformance check flaked on #10988 re[test] |
oc set image
fix local resource outputoc set
sub-commands
oc set
sub-commandsoc set
sub-commands
24bbf78
to
8ccf43b
Compare
5cb6a2a
to
8990f32
Compare
make verify flaked on #11672 re[test] |
The last failure complained about outdated docs, did you |
@fabianofranz Yeah, I updated docs right after that failure, however it has been failing with
) |
@stevekuznetsov I keep getting
was |
8990f32
to
c588461
Compare
@juanvallejo travis bug is fixed with #11877 |
Closing as we'll get this with the kube 1.5 rebase. |
Reopening as the kube rebase won't give us fixes for the rest of the |
@juanvallejo need to squash the local and upstream commits. |
Since this is after the 1.6 rebase, there's no need to squash or do anything else with this now. Once Kube 1.6 comes in, the UPSTREAM commits will come out of this PR. |
24616f8
to
9ea1437
Compare
43d46b7
to
4f74c43
Compare
d889f70
to
73cbf3a
Compare
oc set
sub-commandsoc set
sub-commands
oc set
sub-commandsoc set
sub-commands
c598f22
to
e016c56
Compare
e016c56
to
770d4c4
Compare
@juanvallejo legit failure?
|
@fabianofranz hm, I can't seem to reproduce this locally, rebasing with latest master and once more |
770d4c4
to
d49772c
Compare
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 ```
d49772c
to
16c4978
Compare
Evaluated for origin test up to 16c4978 |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1283/) (Base Commit: 31caa0d) |
@fabianofranz meant to force-push after updating Re-opened here: #14123 |
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
cc @openshift/cli-review