Merge pull request #10585 from officialasishkumar/fix-pvb-node-printcolumn

Point the PodVolumeBackup Node print column at .spec.node
This commit is contained in:
lyndon-li
2026-09-28 14:22:32 +08:00
committed by GitHub
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