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 <officialasishkumar@gmail.com>
This commit is contained in:
Asish Kumar
2026-09-25 23:34:04 +05:30
parent 8e9f66addf
commit 1d53a815ca
3 changed files with 3 additions and 2 deletions
@@ -0,0 +1 @@
Fix the PodVolumeBackup Node print column to read the node from spec instead of status
@@ -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
@@ -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