controller-tools
controller-tools copied to clipboard
feature: support the (X/Y) display mode for the printcolumn field in kubebuilder
/kind feature As mentioned in the title and our discussion here https://github.com/kubernetes-sigs/kubebuilder/discussions/4134, can we support a JsonPath-like way of multiple combinations? This would allow for more flexible and rich display in CRs, for example, in the format of (X/Y).
It seems that there are others who have the same need.
- https://github.com/kubernetes-sigs/kubebuilder/discussions/2285
- https://stackoverflow.com/questions/66754354/how-to-display-a-kubectl-column-using-a-fraction-format-i-e-x-y-for-a-custom