Skip to content

Commit bca9205

Browse files
author
Jeff McCormick
committed
print out the pgbackup CRD creation timestamp for pgo show backup command
1 parent 7968035 commit bca9205

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pgo/cmd/backup.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ func printBackupCRD(result *crv1.Pgbackup) {
123123
fmt.Printf("%s%s\n", "", "pgbackup : "+result.Spec.Name)
124124

125125
fmt.Printf("%s%s\n", TreeBranch, "PVC Name:\t"+result.Spec.StorageSpec.Name)
126-
fmt.Printf("%s%s\n", TreeBranch, "PVC Access Mode:\t"+result.Spec.StorageSpec.AccessMode)
127-
fmt.Printf("%s%s\n", TreeBranch, "PVC Size:\t\t"+result.Spec.StorageSpec.Size)
126+
fmt.Printf("%s%s\n", TreeBranch, "Access Mode:\t"+result.Spec.StorageSpec.AccessMode)
127+
fmt.Printf("%s%s\n", TreeBranch, "PVC Size:\t"+result.Spec.StorageSpec.Size)
128+
fmt.Printf("%s%s\n", TreeBranch, "Creation:\t"+result.ObjectMeta.CreationTimestamp.String())
128129
fmt.Printf("%s%s\n", TreeBranch, "CCPImageTag:\t"+result.Spec.CCPImageTag)
129130
fmt.Printf("%s%s\n", TreeBranch, "Backup Status:\t"+result.Spec.BackupStatus)
130131
fmt.Printf("%s%s\n", TreeBranch, "Backup Host:\t"+result.Spec.BackupHost)

0 commit comments

Comments
 (0)