mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-08 14:21:18 +00:00
This change modifies the kubebuilder annotations for the Velero CRDs to include `additionalPrinterColumns` so that more information is exposed when using `kubectl get`. For each of the CRDs, annotations have been added to make the output for `kubectl get` match the output from the equivalent `velero get` command as closely as possible. There are some cases where this output could not be replicated, such as the `EXPIRES` column for Backups, due to the limitations of JSONPath expressions within the resulting CRD defition. Some columns undergo processing and formatting before being printed by the Velero CLI which cannot be replicated using JSONPath. In these cases, these printer columns have been omitted. For other CRDs where there is no `velero get` equivalent, such as `PodVolumeBackup` and `PodVolumeRestore`, a best effort has been made to expose information that provides value. Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>