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

Setting priority 0 in crd, breaks CD workflow #327

Open
sakomws opened this issue Sep 5, 2024 · 1 comment
Open

Setting priority 0 in crd, breaks CD workflow #327

sakomws opened this issue Sep 5, 2024 · 1 comment

Comments

@sakomws
Copy link

sakomws commented Sep 5, 2024

By default, kubernetes not shows up priority field if it is 0, which breaks CD tooling, assuming its missing the field.

Would be great to remove the priority fields:

here is screenshot from CD tool:
Screenshot 2024-09-05 at 15 45 29

@afalhambra-hivemq
Copy link
Contributor

Thanks @sakomws for reaching out to us.

In K8s for a CustomResourceDefinition (CRD), the additionalPrinterColumns columns with a 0 priority are shown in a standard view (kubectl get), however for non-0 priority columns are only shown when -o wide is passed.
See:

$ kubectl get hivemq-platforms.hivemq.com hivemq 
NAME       MESSAGE                              STATE         STATEPHASE
hivemq      HiveMQ Platform is ready            RUNNING       READY

$ kubectl get hivemq-platforms.hivemq.com platform -o wide
NAME       MESSAGE                              STATE         STATEPHASE
hivemq     HiveMQ Platform is ready             RUNNING       READY

So when you say kubernetes not shows up priority field if it is 0, what command are you using to display these columns?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants