Wenkai Yin(尹文开)
4b9dbfa416
Support pause/unpause schedules
...
Support pause/unpause schedule
Fixes #2363
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-09-15 10:42:48 +08:00
Scott Seago
596114b427
Add credentials to volume snapshot locations.
...
This is analogous to the BSL creds work that was done previously, but for VSLs instead.
Signed-off-by: Scott Seago <sseago@redhat.com >
2022-09-08 08:59:17 -04:00
lyndon and GitHub
0282e65221
Kopia Pod Volume Backup/Restore ( #5259 )
...
* kopia pvbr
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-09-05 10:29:30 +08:00
Wenkai Yin(尹文开)
047c7531fa
Refactor the restic repo related code for Kopia integration
...
Refactor the restic repo related code for Kopia integration
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-08-17 11:49:53 +08:00
Xun Jiang/Bruce Jiang and GitHub
a5f4f8f9fc
Merge branch 'main' into 5048-CSI-snapshot-timeout-configurable
2022-08-08 17:18:44 +08:00
Xun Jiang
f8d9cfdb84
Make CSI snapshot creation timeout configurable for backup and schedule.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-08-08 17:07:26 +08:00
Xun Jiang
e8da5df57a
Reduce CRD size.
...
1. Make the Restore hook.InitConatianer server side field pruing disable.
2. Remove restore patch in update-generate-crd-code.sh.
3. Modify related testcases.
4. Add Container fields validation in Restore Init hook.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-08-02 19:45:01 +08:00
Daniel Jiang and GitHub
2b0d0959da
Merge pull request #5148 from blackpiglet/vsl-refactor
...
VolumeSnapshotLocation refactor with kubebuilder.
2022-08-01 21:14:18 +08:00
Xun Jiang
396e68b810
VolumeSnapshotLocation refactor with kubebuilder.
...
1. modify VSL CRD API file name. Add kubebuilder related marker.
2. Add Labels init code for VSL create command.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-07-25 15:46:43 +08:00
Daniel Jiang
f562a7ce2b
Update the CRD for kopia integration
...
This commit adds additional fields to podvolumebackup
and podvolumerestore. The resticrepository will be renamed to
backuprepository
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2022-07-22 00:10:24 +08:00
Anshul Ahuja and GitHub
7b51bfe03d
Merge branch 'main' into main
2022-06-15 14:16:38 +05:30
Anshul Ahuja and GitHub
a0ff46a3de
Add kubebuilder annotation for autogen
...
Signed-off-by: GitHub <noreply@github.com >
2022-06-13 13:28:26 +00:00
Anshul Ahuja and GitHub
735d506a7d
Add support to download CSI json from object store
...
Signed-off-by: GitHub <noreply@github.com >
2022-06-13 13:28:26 +00:00
Wenkai Yin(尹文开)
34087fe5f4
Disable status as sub resource in CRDs
...
When enabling the status as sub resource in CRD, the status will be ignored when creating the CR with status, this will cause issues when syncing backups/pvbs
Fixes #4950
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-06-09 07:52:08 +08:00
Rafael Leal
7f22974719
Update CRDs
...
Signed-off-by: Rafael Leal <rafaelealdias@gmail.com >
2022-05-12 11:59:49 -03:00
Rafael Leal
04aa7a849f
Fixes tests hopefully
...
Signed-off-by: Rafael Leal <rafaelealdias@gmail.com >
2022-05-12 11:59:05 -03:00
Rafael Leal
0b9d6ae73d
Add restore status mechanism
...
Signed-off-by: Rafael Leal <rafaelealdias@gmail.com >
2022-05-12 11:59:05 -03:00
Rafael Leal
7f1f881c28
Add resource status
...
Signed-off-by: Rafael Leal <rafaelealdias@gmail.com >
2022-05-12 11:58:47 -03:00
Shubham Pampattiwar
bfdb68a35a
add multiple label selector support to backup API
...
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
remove backup CLI bits
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
labelselectors spec option for velero restore
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
add changelog file
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
update spec name to OrLabelSelectors
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
minor fixes
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
add validations for labelSelector and orLabelSelectors
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
update crds.gp after fixing conflicts
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
fix CI and add unit tests
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
updated OrLabelSelector spec description and added validation failure unit tests
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
add comments and change log level
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
update site docs
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
wrap pager client calls in a function
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
resolve confilcts and update crds.go
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
rebase and update crds.go
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
combine listing items for a given label
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
2022-05-11 09:57:47 -04:00
Shubham Pampattiwar
e3106f3e10
add existingResourcePolicy to Restore API
...
add updateall policy option
fix updating labels
dump updateAll policy option
remove updateAll policy refs
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
add changelog file
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
update docs
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
patch labels for sa if policy is update
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
fix existingResourcePolicy for serviceaccounts
modularize changes and add unit tests
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
fix conflicts and update crds.go
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
change log level from info to error
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
update crds.go
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
2022-05-09 13:36:24 -04:00
Ming
ef7e5a8388
change func name and repository description
...
Signed-off-by: Ming <mqiu@vmware.com >
2022-05-09 13:57:02 +08:00
Ming
752b28166f
Merge branch 'main' of https://github.com/qiuming-best/velero into restic-repo-tmp
2022-05-06 14:43:00 +08:00
Daniel Jiang and GitHub
628164668f
Merge pull request #4655 from ywk253100/220214_pod_volume_restore
...
Convert Pod Volume Restore resource/controller to the Kubebuilder framework
2022-05-05 10:33:41 +08:00
Ming
06d3d731ed
Refactor restic repository
...
Signed-off-by: Ming <mqiu@vmware.com >
2022-04-29 10:26:00 +08:00
Xun Jiang/Bruce Jiang and GitHub
001229a8b3
Merge pull request #4855 from reasonerjt/bak-delete-refact
...
Refactor backup deletion controller based on kubebuilder
2022-04-28 10:48:11 +08:00
Daniel Jiang
74fd158a1c
Refactor backup deletion controller based on kubebuilder
...
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2022-04-27 17:00:54 +08:00
Wenkai Yin(尹文开)
c2c211fefb
Convert Pod Volume Restore resource/controller to the Kubebuilder framework
...
Convert Pod Volume Restore resource/controller to the Kubebuilder framework
Fixes #4134
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-04-26 16:23:38 +08:00
Wenkai Yin(尹文开)
dfc86566b8
Make in-progress backup/restore as failed when doing the reconcile
...
Make in-progress backup/restore as failed when doing the reconcile to avoid hanging in in-progress status
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-04-26 11:05:03 +08:00
Wenkai Yin(尹文开)
28bc8b7eef
Use controller-gen to generate the deep copy methods for objects
...
As we are refactoring controllers with kubebuilder, use the controller-gen rather than code-generator to generate the deep copy methods for objects
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-04-18 21:18:00 +08:00
qiuming and GitHub
9373c8a383
Merge pull request #4818 from blackpiglet/2499-add-metric-for-csi-snapshot
...
Add CSI VolumeSnapshot related metrics.
2022-04-15 16:55:37 +08:00
Xun Jiang
9aa4e9e860
Update according to comments. Remove csiVolumeSnapshotsStorageTotal related code.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-04-15 08:05:56 +00:00
Xun Jiang/Bruce Jiang and GitHub
22189e8e19
Merge pull request #4436 from codegold79/3454-convert-pod-volume-backup-controller-to-kubebuilder-v3-framework
...
Convert Pod Volume Backup resource/controller to the Kubebuilder V3 framework
2022-04-15 15:07:09 +08:00
Xun Jiang
4daeec7ab9
Update CRD and GRPC.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-04-09 12:35:09 +00:00
Xun Jiang
368a1ddf3c
Add CSI VolumeSnapshot related metrics.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-04-09 00:57:28 +08:00
Wenkai Yin(尹文开)
016ac129c6
Refactor schedule controller with kubebuilder
...
Refactor schedule controller with kubebuilder
fixes #4671
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-04-07 17:32:52 +08:00
Wenkai Yin(尹文开)
bcc9aa8d69
Update BSL CR as long as there is any error
...
1. Mark the BSL as "Unavailable" when gets any error
2. Add a new field "Message" to the BSL status to record the error message
Fixes #4485
Fixes #4405
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-03-07 10:25:18 +08:00
F. Gold
2dd85c9c42
Convert PodVolumeBackup to Kubebuilder framework
...
Signed-off-by: F. Gold <fgold@vmware.com >
2022-01-26 20:09:24 -08:00
David L. Smith-Uchida and GitHub
a1b48ceac5
Adds <backup-name>-itemsnapshots.gz file to backup (when provided). ( #4429 )
...
* Adds <backup-name>-itemsnapshots.gz file to backup (when provided). Also
adds DownloadTargetKindBackupItemSnapshots type to allow downloading.
Updated object store unit test
Fixes #3758
Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com >
* Removed redundant checks
Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com >
2021-12-13 14:47:50 -05:00
Wenkai Yin(尹文开) and GitHub
769af3f7b8
Merge pull request #4416 from dsu-igeek/dsu-upload-progress-feature-flag-12-01-2021
...
Added UploadProgressFeature flag to enable UploadProgressMonitoring
2021-12-08 09:33:36 +08:00
Dave Smith-Uchida
d0e660f435
Added UploadProgressFeature flag to enable UploadProgressMonitoring and ItemSnapshotters
...
Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com >
2021-12-07 00:06:36 -08:00
Daniel Jiang
a3d196ee85
Bump up Go to 1.17
...
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2021-12-06 20:16:24 +08:00
ae6e1df9aa
Add Labels field to BackupSpec ( #3641 )
...
* Add metadata.Labels to schedule.Spec.Template and it's copy logic to Backup
Signed-off-by: Arush Salil <me@aru.sh >
* document metadata.labels
Signed-off-by: Klavs Klavsen <klavs@enableit.dk >
* adjust text per suggestion.
Signed-off-by: Klavs Klavsen <klavs@enableit.dk >
* Rewrite labels copy logic, add comments, and debug log messages
Signed-off-by: Arush Salil <me@aru.sh >
* Rephrase label copy debug log
Signed-off-by: Arush Salil <me@aru.sh >
* Add initialized logger to FromSchedule
Signed-off-by: Arush Salil <me@aru.sh >
* use info log level per request.
Signed-off-by: Klavs Klavsen <klavs@enableit.dk >
Co-authored-by: Klavs Klavsen <klavs@enableit.dk >
2021-06-17 11:18:37 -07:00
David L. Smith-Uchida and GitHub
0aa3c263b4
Added BackupPhaseUploading and BackupPhaseUploadingPartialFailure backup ( #3805 )
...
phases as part of Upload Progress Monitoring, fixes #3755 Add backup phases
needed for Upload Progress Monitoring
Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com >
2021-06-02 14:25:19 +08:00
Carlisia Thompson and GitHub
c65c17c559
Revert printer columns ( #3652 )
...
* Revert "Add additional printer columns for CRDs (#2881 )"
This reverts commit 4178d9de32 .
Signed-off-by: Carlisia <carlisia@vmware.com >
* Add generated files
Signed-off-by: Carlisia <carlisia@vmware.com >
2021-03-31 14:46:37 -07:00
Bridget McErlean and GitHub
3656f45f55
Partially revert adding credentials to VSL ( #3561 )
...
We are no longer adding the Credentials field to the VSL so this reverts
part the change that added it (#3409 ).
The original PR also added the `snapshot-location set` command. This
command only included options for setting the credential but is part of
the work for #2426 . Due to this, the command has been left in place
(with the credentials option removed) but has been hidden.
Signed-off-by: Bridget McErlean <bmcerlean@vmware.com >
2021-03-11 10:10:27 -08:00
Pranav Gaikwad and GitHub
c46fe71b12
Restore progress reporting ( #3125 )
...
* restore progress reporting
Signed-off-by: Pranav Gaikwad <pgaikwad@redhat.com >
* add restore statistics to describe restore
Signed-off-by: Pranav Gaikwad <pgaikwad@redhat.com >
* address feedback, include namespaces in the count
Signed-off-by: Pranav Gaikwad <pgaikwad@redhat.com >
2021-03-04 16:21:44 -05:00
Carlisia Thompson and GitHub
11bfe82342
Convert DownloadRequest resource/controller to kubebuilder ( #3004 )
...
* Migrate DownloadRequest types to kubebuilder
Signed-off-by: Carlisia <carlisia@vmware.com >
* Migrate controller to kubebuilder
Signed-off-by: Carlisia <carlisia@vmware.com >
* Migrate download request cli to kubebuilder
Signed-off-by: Carlisia <carlisia@vmware.com >
* Format w make update
Signed-off-by: Carlisia <carlisia@vmware.com >
* Remove download file
Signed-off-by: Carlisia <carlisia@vmware.com >
* Remove kubebuilder from backup/restore apis
Signed-off-by: Carlisia <carlisia@vmware.com >
* Fix test description
Signed-off-by: Carlisia <carlisia@vmware.com >
* Import cleanups
Signed-off-by: Carlisia <carlisia@vmware.com >
* Refactor for controller runtime version update
Signed-off-by: Carlisia <carlisia@vmware.com >
* Remove year from the copyright
Signed-off-by: Carlisia <carlisia@vmware.com >
* Check for expiration regardless of phase
Signed-off-by: Carlisia <carlisia@vmware.com >
* Fix typos and godoc
Signed-off-by: Carlisia <carlisia@vmware.com >
* Fix test setup and fix a test case
Signed-off-by: Carlisia <carlisia@vmware.com >
2021-03-01 13:28:46 -05:00
JenTing Hsiao and GitHub
3070feaeb2
Merge pull request #3409 from nrb/add-credentials-to-vsls
...
Add credentials to VSLs
2021-02-10 09:07:41 +08:00
Carlisia
b7c2f2d7ed
Better help messages and validation check
...
Signed-off-by: Carlisia <carlisia@vmware.com >
2021-02-09 13:18:45 -08:00
Carlisia
60cbac1e9f
Fix typo
...
Signed-off-by: Carlisia <carlisia@vmware.com >
2021-02-09 13:17:49 -08:00