Add printer columns for BackupStorageLocation provider and access mode

Signed-off-by: saral <ilovegojo2580@gmail.com>
This commit is contained in:
saral
2026-08-28 05:12:21 +05:30
parent 836689f6cc
commit 668a486c33
2 changed files with 10 additions and 0 deletions
@@ -17,6 +17,10 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: Provider is the provider of the backup storage
jsonPath: .spec.provider
name: Provider
type: string
- description: Backup Storage Location status such as Available/Unavailable
jsonPath: .status.phase
name: Phase
@@ -26,6 +30,10 @@ spec:
jsonPath: .status.lastValidationTime
name: Last Validated
type: date
- description: AccessMode defines the permissions for the backup storage location
jsonPath: .spec.accessMode
name: Access Mode
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
@@ -104,8 +104,10 @@ type BackupStorageLocationStatus struct {
// +kubebuilder:resource:shortName=bsl
// +kubebuilder:object:generate=true
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="Provider",type="string",JSONPath=".spec.provider",description="Provider is the provider of the backup storage"
// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase",description="Backup Storage Location status such as Available/Unavailable"
// +kubebuilder:printcolumn:name="Last Validated",type="date",JSONPath=".status.lastValidationTime",description="LastValidationTime is the last time the backup store location was validated"
// +kubebuilder:printcolumn:name="Access Mode",type="string",JSONPath=".spec.accessMode",description="AccessMode defines the permissions for the backup storage location"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:printcolumn:name="Default",type="boolean",JSONPath=".spec.default",description="Default backup storage location"