Skip to content

Commit

Permalink
fix(backup): add backup target column for backup volume
Browse files Browse the repository at this point in the history
ref: longhorn/longhorn 10191

Signed-off-by: James Lu <[email protected]>
(cherry picked from commit 3c46af5)
  • Loading branch information
mantissahz authored and mergify[bot] committed Jan 13, 2025
1 parent 2c33bee commit 0d5d340
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions k8s/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,10 @@ spec:
subresources:
status: {}
- additionalPrinterColumns:
- description: The backup target name
jsonPath: .spec.backupTargetName
name: BackupTarget
type: string
- description: The backup volume creation time
jsonPath: .status.createdAt
name: CreatedAt
Expand Down
1 change: 1 addition & 0 deletions k8s/pkg/apis/longhorn/v1beta2/backupvolume.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ type BackupVolumeStatus struct {
// +kubebuilder:resource:shortName=lhbv
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="BackupTarget",type=string,JSONPath=`.spec.backupTargetName`,description="The backup target name"
// +kubebuilder:printcolumn:name="CreatedAt",type=string,JSONPath=`.status.createdAt`,description="The backup volume creation time"
// +kubebuilder:printcolumn:name="LastBackupName",type=string,JSONPath=`.status.lastBackupName`,description="The backup volume last backup name"
// +kubebuilder:printcolumn:name="LastBackupAt",type=string,JSONPath=`.status.lastBackupAt`,description="The backup volume last backup time"
Expand Down

0 comments on commit 0d5d340

Please sign in to comment.