mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-28 02:44:19 +00:00
Add printer columns for BackupStorageLocation provider and access mode
Signed-off-by: saral <ilovegojo2580@gmail.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user