Merge pull request #10009 from shubham-pampattiwar/add-crd-short-names
Run the E2E test on kind / get-go-version (push) Failing after 1m0s
Run the E2E test on kind / build (push) Has been skipped
Run the E2E test on kind / setup-test-matrix (push) Successful in 3s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
Main CI / get-go-version (push) Successful in 10s
Main CI / Build (push) Failing after 24s

Add CRD short names for all Velero custom resources
This commit is contained in:
Shubham Pampattiwar
2026-07-18 20:00:18 -07:00
committed by GitHub
23 changed files with 41 additions and 11 deletions
@@ -0,0 +1 @@
Add CRD short names for all Velero custom resources
@@ -11,6 +11,8 @@ spec:
kind: BackupRepository
listKind: BackupRepositoryList
plural: backuprepositories
shortNames:
- repo
singular: backuprepository
scope: Namespaced
versions:
@@ -11,6 +11,8 @@ spec:
kind: Backup
listKind: BackupList
plural: backups
shortNames:
- bak
singular: backup
scope: Namespaced
versions:
@@ -11,6 +11,8 @@ spec:
kind: DeleteBackupRequest
listKind: DeleteBackupRequestList
plural: deletebackuprequests
shortNames:
- dbr
singular: deletebackuprequest
scope: Namespaced
versions:
@@ -11,6 +11,8 @@ spec:
kind: DownloadRequest
listKind: DownloadRequestList
plural: downloadrequests
shortNames:
- dreq
singular: downloadrequest
scope: Namespaced
versions:
@@ -11,6 +11,8 @@ spec:
kind: PodVolumeBackup
listKind: PodVolumeBackupList
plural: podvolumebackups
shortNames:
- pvb
singular: podvolumebackup
scope: Namespaced
versions:
@@ -11,6 +11,8 @@ spec:
kind: PodVolumeRestore
listKind: PodVolumeRestoreList
plural: podvolumerestores
shortNames:
- pvr
singular: podvolumerestore
scope: Namespaced
versions:
@@ -11,6 +11,8 @@ spec:
kind: Restore
listKind: RestoreList
plural: restores
shortNames:
- rst
singular: restore
scope: Namespaced
versions:
@@ -11,6 +11,8 @@ spec:
kind: Schedule
listKind: ScheduleList
plural: schedules
shortNames:
- sched
singular: schedule
scope: Namespaced
versions:
File diff suppressed because one or more lines are too long
@@ -11,6 +11,8 @@ spec:
kind: DataDownload
listKind: DataDownloadList
plural: datadownloads
shortNames:
- dd
singular: datadownload
scope: Namespaced
versions:
@@ -11,6 +11,8 @@ spec:
kind: DataUpload
listKind: DataUploadList
plural: datauploads
shortNames:
- du
singular: dataupload
scope: Namespaced
versions:
File diff suppressed because one or more lines are too long
@@ -118,7 +118,7 @@ type BackupRepositoryMaintenanceStatus struct {
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:printcolumn:name="Repository Type",type="string",JSONPath=".spec.repositoryType"
//
// +kubebuilder:resource:shortName=repo
type BackupRepository struct {
metav1.TypeMeta `json:",inline"`
+1
View File
@@ -516,6 +516,7 @@ type HookStatus struct {
// +kubebuilder:storageversion
// +kubebuilder:rbac:groups=velero.io,resources=backups,verbs=create;delete;get;list;patch;update;watch
// +kubebuilder:rbac:groups=velero.io,resources=backups/status,verbs=get;update;patch
// +kubebuilder:resource:shortName=bak
// Backup is a Velero resource that represents the capture of Kubernetes
// cluster state at a point in time (API objects and associated volume state).
@@ -58,6 +58,7 @@ type DeleteBackupRequestStatus struct {
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="BackupName",type="string",JSONPath=".spec.backupName",description="The name of the backup to be deleted"
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase",description="The status of the deletion request"
// +kubebuilder:resource:shortName=dbr
// DeleteBackupRequest is a request to delete one or more backups.
type DeleteBackupRequest struct {
@@ -92,6 +92,7 @@ type DownloadRequestStatus struct {
// +kubebuilder:object:root=true
// +kubebuilder:object:generate=true
// +kubebuilder:storageversion
// +kubebuilder:resource:shortName=dreq
// DownloadRequest is a request to download an artifact from backup object storage, such as a backup
// log file.
@@ -145,6 +145,7 @@ type PodVolumeBackupStatus struct {
// +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
// +kubebuilder:resource:shortName=pvb
type PodVolumeBackup struct {
metav1.TypeMeta `json:",inline"`
@@ -133,6 +133,7 @@ type PodVolumeRestoreStatus struct {
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since this PodVolumeRestore was created"
// +kubebuilder:printcolumn:name="Node",type="string",JSONPath=".status.node",description="Name of the node where the PodVolumeRestore is processed"
// +kubebuilder:printcolumn:name="Uploader Type",type="string",JSONPath=".spec.uploaderType",description="The type of the uploader to handle data transfer"
// +kubebuilder:resource:shortName=pvr
type PodVolumeRestore struct {
metav1.TypeMeta `json:",inline"`
+1
View File
@@ -411,6 +411,7 @@ type RestoreProgress struct {
// +kubebuilder:storageversion
// +kubebuilder:rbac:groups=velero.io,resources=restores,verbs=create;delete;get;list;patch;update;watch
// +kubebuilder:rbac:groups=velero.io,resources=restores/status,verbs=get;update;patch
// +kubebuilder:resource:shortName=rst
// Restore is a Velero resource that represents the application of
// resources from a Velero backup to a target Kubernetes cluster.
+1
View File
@@ -104,6 +104,7 @@ type ScheduleStatus struct {
// +kubebuilder:printcolumn:name="LastBackup",type="date",JSONPath=".status.lastBackup",description="The last time a Backup was run for this schedule"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:printcolumn:name="Paused",type="boolean",JSONPath=".spec.paused"
// +kubebuilder:resource:shortName=sched
// Schedule is a Velero resource that represents a pre-scheduled or
// periodic Backup that should be run.
@@ -152,6 +152,7 @@ type DataDownloadStatus struct {
// +kubebuilder:printcolumn:name="Storage Location",type="string",JSONPath=".spec.backupStorageLocation",description="Name of the Backup Storage Location where the backup data is stored"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since this DataDownload was created"
// +kubebuilder:printcolumn:name="Node",type="string",JSONPath=".status.node",description="Name of the node where the DataDownload is processed"
// +kubebuilder:resource:shortName=dd
// DataDownload acts as the protocol between data mover plugins and data mover controller for the datamover restore operation
type DataDownload struct {
@@ -197,6 +197,7 @@ type DataUploadStatus struct {
// +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 DataUpload was created"
// +kubebuilder:printcolumn:name="Node",type="string",JSONPath=".status.node",description="Name of the node where the DataUpload is processed"
// +kubebuilder:resource:shortName=du
// DataUpload acts as the protocol between data mover plugins and data mover controller for the datamover backup operation
type DataUpload struct {