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
Proposal: better output when getting 3prs #31343
Comments
I can work on this. I will take a look deeper into 3prs and I will try prepare some code proposal |
I've prepared some demo code here: https://github.com/zreigz/kubernetes/tree/third_party_resource_update tpr.yaml
There is one problem with creating tpr resource because new fields can not be resolved
and I can not find solution how to fix it. The Now you can add
and test2.yaml
The result is:
with
so everything works as expected TODO:
|
cc @cheld |
@deads2k @adohe @brendandburns Can you give some feedback. Is it worth to continue this or is it valuable for you ? |
As I recall, @pwittrock had a proposal to use swagger annotations to identify fields to display. There's also a proposal to handle |
@deads2k would the second option work for Dashboard, too? |
I don't know exactly what the dashboad does, but you can take a look here: kubernetes/community#363 |
More broadly, we need to think about what sort of metadata we want for TPRs - e.g. schema / merge keys? |
/kind feature |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Using k8s 1.3.5, and given the existence of a third party resource
foo
, querying for all resources of typefoo
in a namespacebar
produces the following output:Contrast this to the output received when querying for any built-in resource type--
pods
, for instance:The latter case provides useful, contextually rich information about our pods, while the former case tells us nothing of value about our resources of type
foo
.Given that a third party resource could represent anything and have any structure, there is obviously no one-size-fits all behavior that would represent any kind of improvement to this situation, however, what could work (unless this exists already and is not documented) is a mechanism whereby the definition of a third party resource could include a list of columns that should be returned with a
get
.Hypothetically, that could look something like this:
Querying for all resources of type
foo
might then yield results like this:Or with
-o wide
specified:The text was updated successfully, but these errors were encountered: