Skip to content

Commit

Permalink
feat(backup): multiple backup stores
Browse files Browse the repository at this point in the history
Update CRDs:
  - Backup
  - BackupVolume
  - BackupBackingImage
  - Volume

ref: longhorn/longhorn 5411

Signed-off-by: James Lu <james.lu@suse.com>
  • Loading branch information
mantissahz authored and derekbit committed Dec 16, 2024
1 parent 7cd5936 commit 82fc4c5
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
25 changes: 25 additions & 0 deletions chart/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,14 @@ spec:
description: BackupBackingImageSpec defines the desired state of the Longhorn
backing image backup
properties:
backingImage:
description: The backing image name..
nullable: true
type: string
backupTargetName:
description: The backup target name.
nullable: true
type: string
labels:
additionalProperties:
type: string
Expand Down Expand Up @@ -828,6 +836,10 @@ spec:
jsonPath: .status.snapshotCreatedAt
name: SnapshotCreatedAt
type: string
- description: The backup target name
jsonPath: .status.backupTarget
name: BackupTarget
type: string
- description: The backup state
jsonPath: .status.state
name: State
Expand Down Expand Up @@ -890,6 +902,9 @@ spec:
backupCreatedAt:
description: The snapshot backup upload finished time.
type: string
backupTargetName:
description: The backup target name.
type: string
compressionMethod:
description: Compression method
type: string
Expand Down Expand Up @@ -1278,11 +1293,18 @@ spec:
description: BackupVolumeSpec defines the desired state of the Longhorn
backup volume
properties:
backupTargetName:
description: The backup target name that the backup volume was synced.
nullable: true
type: string
syncRequestedAt:
description: The time to request run sync the remote backup volume.
format: date-time
nullable: true
type: string
volumeName:
description: The volume name that the backup volume was used to backup.
type: string
type: object
status:
description: BackupVolumeStatus defines the observed state of the Longhorn
Expand Down Expand Up @@ -4196,6 +4218,9 @@ spec:
- lz4
- gzip
type: string
backupTargetName:
description: 'The backup target name that the volume will be backed up to or is synced.'
type: string
dataEngine:
enum:
- v1
Expand Down
25 changes: 25 additions & 0 deletions deploy/longhorn-okd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,14 @@ spec:
description: BackupBackingImageSpec defines the desired state of the Longhorn
backing image backup
properties:
backingImage:
description: The backing image name..
nullable: true
type: string
backupTargetName:
description: The backup target name.
nullable: true
type: string
labels:
additionalProperties:
type: string
Expand Down Expand Up @@ -951,6 +959,10 @@ spec:
jsonPath: .status.snapshotCreatedAt
name: SnapshotCreatedAt
type: string
- description: The backup target name
jsonPath: .status.backupTarget
name: BackupTarget
type: string
- description: The backup state
jsonPath: .status.state
name: State
Expand Down Expand Up @@ -1013,6 +1025,9 @@ spec:
backupCreatedAt:
description: The snapshot backup upload finished time.
type: string
backupTargetName:
description: The backup target name.
type: string
compressionMethod:
description: Compression method
type: string
Expand Down Expand Up @@ -1409,11 +1424,18 @@ spec:
description: BackupVolumeSpec defines the desired state of the Longhorn
backup volume
properties:
backupTargetName:
description: The backup target name that the backup volume was synced.
nullable: true
type: string
syncRequestedAt:
description: The time to request run sync the remote backup volume.
format: date-time
nullable: true
type: string
volumeName:
description: The volume name that the backup volume was used to backup.
type: string
type: object
status:
description: BackupVolumeStatus defines the observed state of the Longhorn
Expand Down Expand Up @@ -4387,6 +4409,9 @@ spec:
- lz4
- gzip
type: string
backupTargetName:
description: 'The backup target name that the volume will be backed up to or is synced.'
type: string
dataEngine:
enum:
- v1
Expand Down
25 changes: 25 additions & 0 deletions deploy/longhorn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,14 @@ spec:
description: BackupBackingImageSpec defines the desired state of the Longhorn
backing image backup
properties:
backingImage:
description: The backing image name..
nullable: true
type: string
backupTargetName:
description: The backup target name.
nullable: true
type: string
labels:
additionalProperties:
type: string
Expand Down Expand Up @@ -949,6 +957,10 @@ spec:
jsonPath: .status.snapshotCreatedAt
name: SnapshotCreatedAt
type: string
- description: The backup target name
jsonPath: .status.backupTarget
name: BackupTarget
type: string
- description: The backup state
jsonPath: .status.state
name: State
Expand Down Expand Up @@ -1011,6 +1023,9 @@ spec:
backupCreatedAt:
description: The snapshot backup upload finished time.
type: string
backupTargetName:
description: The backup target name.
type: string
compressionMethod:
description: Compression method
type: string
Expand Down Expand Up @@ -1407,11 +1422,18 @@ spec:
description: BackupVolumeSpec defines the desired state of the Longhorn
backup volume
properties:
backupTargetName:
description: The backup target name that the backup volume was synced.
nullable: true
type: string
syncRequestedAt:
description: The time to request run sync the remote backup volume.
format: date-time
nullable: true
type: string
volumeName:
description: The volume name that the backup volume was used to backup.
type: string
type: object
status:
description: BackupVolumeStatus defines the observed state of the Longhorn
Expand Down Expand Up @@ -4385,6 +4407,9 @@ spec:
- lz4
- gzip
type: string
backupTargetName:
description: 'The backup target name that the volume will be backed up to or is synced.'
type: string
dataEngine:
enum:
- v1
Expand Down

0 comments on commit 82fc4c5

Please sign in to comment.