Skip to content
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

Support kubectl explain #3416

Open
jlpettersson opened this issue Oct 20, 2020 · 8 comments
Open

Support kubectl explain #3416

jlpettersson opened this issue Oct 20, 2020 · 8 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.

Comments

@jlpettersson
Copy link
Member

Feature request

When working with yaml, it is hard to know all the fields, and it is cumbersome to find yaml in the doc. When working with kubernetes it is good to be able to use kubectl explain <resource> to understand the yaml structure.

This is not well supported for Tekton resources:

$ kubectl explain PipelineRun
KIND:     PipelineRun
VERSION:  tekton.dev/v1beta1

DESCRIPTION:
     <empty>

Would it be possible to improve on this?

Use case

I would like to e.g. lookup how a PipelineRun should be structured with:

kubectl explain PipelineRun.spec

But that is not so helpful, e.g. compare with kubectl explain Deployment.spec - that is very helpful.

@jlpettersson jlpettersson added the kind/feature Categorizes issue or PR as related to a new feature. label Oct 20, 2020
@vdemeester
Copy link
Member

@jlpettersson so my guess is #3173 would help, but it comes with a problem : our spec are huge, so having the openapi spec embedded in the CRD breaks the kubectl apply as it becomes an object too big for etcd 😅

@tekton-robot
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale with a justification.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 18, 2021
@chmouel
Copy link
Member

chmouel commented Jan 18, 2021

/remove-lifecycle stale
/lifecycle frozen

still useful, unfortunately there is no easy way to imp this

@tekton-robot tekton-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 18, 2021
@georgettica
Copy link

at least I know this issue is known and is hard to implement

@chmouel
Copy link
Member

chmouel commented Mar 7, 2022

I could not remember the reason why it wasn't easy but i rem it was @vdemeester who was telling me about it 😀

@georgettica
Copy link

georgettica commented Mar 7, 2022

@jlpettersson so my guess is #3173 would help, but it comes with a problem : our spec are huge, so having the openapi spec embedded in the CRD breaks the kubectl apply as it becomes an object too big for etcd 😅

@chmouel this seems to be a valid point

@justinabrahms
Copy link
Contributor

It would be very welcome if we could, at a minimum, link to the API specs as part of the description field of the CRD.

@vdemeester
Copy link
Member

There s a new PR trying to fix that 👼🏼 #8490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
Status: Todo
Development

No branches or pull requests

6 participants