-
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: 38112: Add json,yaml output format support to oc create
, oc apply
#12015
UPSTREAM: 38112: Add json,yaml output format support to oc create
, oc apply
#12015
Conversation
[test] |
conformance flaked on #11747 re[test] |
f713021
to
1177067
Compare
if !decoded { | ||
return fmt.Errorf("Unsupported output format for the current object") | ||
} | ||
return f.PrintObject(cmd, registered.RESTMapper(), decodedObj, out) |
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.
@fabianofranz Added support for printing unstructured objects with a wide printer. PTAL
Sample output:
$ oc create -f pkg/api/graph/test/bc-missing-output.yaml --dry-run -o wide
NAME TYPE FROM LATEST
gitauthtest Source Git 1
networking check flaked on #12091 re[test] |
@fabianofranz I can go ahead and open an Upstream PR if everything looks okay |
Related upstream PR: kubernetes/kubernetes#38112 |
oc create
oc create
This patch adds the ability to specify an output format other than "name" to `oc create ...`. It can be used in conjunction with the `--dry-run` option.
a6a9077
to
6e3dc77
Compare
conformance check flaked on #11662 re[test] |
7e0a6b2
to
c054309
Compare
oc create
oc create
, oc apply
c054309
to
1b1722a
Compare
This patch adds the same printer output format support that was added to `oc create` to the `apply` command.
check flaked on #12157 re[test] |
1 similar comment
check flaked on #12157 re[test] |
db098d5
to
fb45bd6
Compare
integration flaked on #8571 |
integration flaked on #8571 |
fb45bd6
to
aaaae1b
Compare
aaaae1b
to
971c51c
Compare
Evaluated for origin test up to 971c51c |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12205/) (Base Commit: 79fdfb4) |
@fabianofranz Upstream merged! |
@juanvallejo cool, are you ok with tagging this as |
@fabianofranz definitely, it would remove the need to modify resource_printer if we wait until the rebase |
@juanvallejo actually this is just UPSTREAM commits. Are there any Origin issues or bugs this fixes? Otherwise I think it's just closing this one and waiting for the rebase. :) |
Looks like we'll get all of the changes with the next rebase, closing this pr |
Upstream: kubernetes/kubernetes#38112
Related upstream issue: kubernetes/kubernetes#37390
This patch adds the ability to specify an output format other than
"name" to
oc create ...
. It can be used in conjunction with the--dry-run
option.Will add upstream PR
Due to the
mapper
being an UnstructuredObject, using awide
format option results in the error:To mitigate this, an
unsupported output format
error message is printed when a format like this one is specified.Example
cc @openshift/cli-review