From 1d53a815ca0f51460c19b6857d61777c37af51a1 Mon Sep 17 00:00:00 2001 From: Asish Kumar Date: Fri, 25 Sep 2026 23:33:49 +0530 Subject: [PATCH] Point the PodVolumeBackup Node print column at .spec.node PodVolumeBackupStatus has no Node field, so the Node column was always empty. The node is recorded in the spec. Fixes #10444 Signed-off-by: Asish Kumar --- changelogs/unreleased/10585-officialasishkumar | 1 + config/crd/v1/bases/velero.io_podvolumebackups.yaml | 2 +- pkg/apis/velero/v1/pod_volume_backup_types.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelogs/unreleased/10585-officialasishkumar diff --git a/changelogs/unreleased/10585-officialasishkumar b/changelogs/unreleased/10585-officialasishkumar new file mode 100644 index 000000000..fa11772ad --- /dev/null +++ b/changelogs/unreleased/10585-officialasishkumar @@ -0,0 +1 @@ +Fix the PodVolumeBackup Node print column to read the node from spec instead of status diff --git a/config/crd/v1/bases/velero.io_podvolumebackups.yaml b/config/crd/v1/bases/velero.io_podvolumebackups.yaml index fddc9407c..38bf18d36 100644 --- a/config/crd/v1/bases/velero.io_podvolumebackups.yaml +++ b/config/crd/v1/bases/velero.io_podvolumebackups.yaml @@ -51,7 +51,7 @@ spec: name: Age type: date - description: Name of the node where the PodVolumeBackup is processed - jsonPath: .status.node + jsonPath: .spec.node name: Node type: string - description: The type of the uploader to handle data transfer diff --git a/pkg/apis/velero/v1/pod_volume_backup_types.go b/pkg/apis/velero/v1/pod_volume_backup_types.go index 826b1a5cb..6770ae927 100644 --- a/pkg/apis/velero/v1/pod_volume_backup_types.go +++ b/pkg/apis/velero/v1/pod_volume_backup_types.go @@ -163,7 +163,7 @@ type PodVolumeBackupStatus struct { // +kubebuilder:printcolumn:name="Incremental Bytes",type="integer",format="int64",JSONPath=".status.incrementalBytes",description="Incremental bytes",priority=10 // +kubebuilder:printcolumn:name="Storage Location",type="string",JSONPath=".spec.backupStorageLocation",description="Name of the Backup Storage Location where this backup should be stored" // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since this PodVolumeBackup was created" -// +kubebuilder:printcolumn:name="Node",type="string",JSONPath=".status.node",description="Name of the node where the PodVolumeBackup is processed" +// +kubebuilder:printcolumn:name="Node",type="string",JSONPath=".spec.node",description="Name of the node where the PodVolumeBackup is processed" // +kubebuilder:printcolumn:name="Uploader",type="string",JSONPath=".spec.uploaderType",description="The type of the uploader to handle data transfer" // +kubebuilder:object:root=true // +kubebuilder:object:generate=true