-
Notifications
You must be signed in to change notification settings - Fork 63
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
[RFE] Add PAUSED
column to the omc get mcp
output
#141
Comments
Hi @oarribas If this feature is added to the Cheers, |
Hi @vlours,
[1] https://github.com/vlours/mg_cluster_status/tree/main |
As far as I can check, the omc uses CRD's spec.additionalPrinterColumns to print the columns: omc/pkg/tablegenerator/tablegenerator.go Line 172 in e039bd3
So if this RFE needs to be implemented, some exceptional check needs to be done to the omc, which needs lots of work. At the same time, how about this ugly workaround? The user could customize whatever columns they want because omc also supports custom-columns. The only issue is, custom-columns can not automatically convert creationTimestamp to the duration of time but that shouldn't be a big problem and you could play with how to convert creationTimestamp to duration on your own way. You could put this sample script under whatever your bashrc file:
|
As @cchen666 mentioned omc uses CRD yaml files to get the column to print for custom resources, and I don't want to go away from this code architecture. Still, I understand that it would be nice to have also other information printed for some resources based on our needs, so I came up with the idea to allow setting alternative columns definitions for resources and a different flag to print them, i.e. |
Info about if an MCP is paused is useful, and the info could be added to the
omc get mcp
output for easily show that.The text was updated successfully, but these errors were encountered: