-
Notifications
You must be signed in to change notification settings - Fork 924
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
Age printer column is no more reported when adding additional ones #903
Comments
It looks like Age is added as a default if you haven't defined any additionalPrinterColumns. You should be able to add it yourself if you want to include it for your CRD. What if you you do something like this?
|
Thanks for the hint, pretty sure I'll fix in this way. My issue reporting was more involved into raising the topic to understand if this is a sort of bug or rather a default behavior, since I wasn't able to figure out this from the docs or any other knowledge source. I know there are some Kubernetes resources that doesn't provide an What do you think about this? |
This came up at the monthly bug scrub meeting today. The consensus was that how it works currently is the desired behavior. To recap the behavior:
This provides the most flexibility because you can decide whether you want to include Given the above explanation and per the discussion at the bug scrub meeting, I will close this issue. /close |
@brianpursley: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened:
I'm developing some Custom Resource Definitions (CRDs) and noticed the missing of the column
AGE
when getting the resources from the CLI.The reason is that I'm implementing some additional columns using the
.spec.additionalPrinterColumns
array provided byCustomResourceDefinition
Kind (apiextensions.k8s.io/v1beta1
).When I remove these two additional columns, the
AGE
is printed back correctly.I'm not sure if this is a problem from
kubectl
or rather the API Server perspective.What you expected to happen:
Although adding additional printer columns, I'm expecting to get AGE as usual.
How to reproduce it (as minimally and precisely as possible):
Try to install the following CRD and applying a sample definition.
Getting the
tenants.capsule.clastix.io
fromkubectl
will not report theAGE
.Anything else we need to know?:
Not relevant.
Environment:
kubectl version
):cat /etc/os-release
):The text was updated successfully, but these errors were encountered: