Xun Jiang
5c74aa22e6
Avoid duplicated snapshotting, when CSI is enabled
...
Fix #4758
Do not take snapshot for PV to avoid duplicated snapshotting, when CSI feature is enabled.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-04-07 23:32:48 +08:00
Wenkai Yin(尹文开) and GitHub
0b8f19e4d4
Merge pull request #4779 from reasonerjt/fix-restore-hook
...
Ensure the restore hook applied to new namespace based on the mapping
2022-03-29 14:07:08 +08:00
Daniel Jiang
2939914113
Ensure the restore hook applied to new namespace based on the mapping
...
fixes #4720
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2022-03-28 10:24:47 +08:00
Scott Seago and GitHub
8e4f88db68
Merge pull request #4295 from mercedes-benz/tobiasgiese/items-metrics
...
Add metrics backup_items_total and backup_items_errors
2022-03-25 16:40:43 -04:00
Tiger Kaovilai and GitHub
d1fdaecc94
Add labels to expired backups failing garbage collection. ( #4757 )
...
* Add bsl related TTL gc errors to labelSelectors
* if backup label map is nil, make map
* clear label if not BSL error
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2022-03-25 17:01:55 +08:00
Tobias Giese
1b8da68fc2
metrics: add items gauges
...
Signed-off-by: Tobias Giese <tobias.giese@daimler.com >
2022-03-22 18:36:55 +01:00
rick
bd17d32885
Fix the golang lint error: Variable 'session' collides with imported package name
...
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com >
2022-03-22 21:44:43 +08:00
Xun Jiang/Bruce Jiang and GitHub
9df0394359
Merge pull request #4740 from phuongatemc/add-priorityclass-to-podaction-plugin
...
Add priorityclass to podaction plugin
2022-03-22 19:43:04 +08:00
Hoang, Phuong
0171a91366
Correct copyright comment and string compare
...
Signed-off-by: Hoang, Phuong <phuong.n.hoang@dell.com >
2022-03-21 12:01:26 -04:00
Scott Seago and GitHub
09ec3ba994
Insert all restore errors and warnings into restore log ( #4743 )
...
This allows a user inspecting the restore logs to see any
errors or warnings generated by the restore so that they
will be seen even without having to use the describe cli.
Signed-off-by: Scott Seago <sseago@redhat.com >
2022-03-21 14:29:03 +08:00
Hoang, Phuong
b8b5427388
Fix format.
...
Signed-off-by: Hoang, Phuong <phuong.n.hoang@dell.com >
2022-03-15 19:54:24 -04:00
Hoang, Phuong
e9d5f7121c
Add unit tests, change copyright years and revert unrelated changes.
...
Signed-off-by: Hoang, Phuong <phuong.n.hoang@dell.com >
2022-03-15 19:51:53 -04:00
Hoang, Phuong
0741360050
Adding PriorityClass to backup podAction and restore podAction.
...
Signed-off-by: Hoang, Phuong <phuong.n.hoang@dell.com >
2022-03-15 19:05:13 -04:00
Wenkai Yin(尹文开) and GitHub
208d250ddc
Merge pull request #4719 from ywk253100/220225_bsl
...
Update BSL CR as long as there is any error
2022-03-08 16:40:24 +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
qiuming and GitHub
b0cd90253b
Merge pull request #4661 from blackpiglet/4499-hook-podexec-container
...
[fix] Avoid overwritten hook's exec.container parameter when running …
2022-03-01 15:39:54 +08:00
Xun Jiang
0503b2675f
Modify according to comments.
...
Change hook.Container's value in test case to ""
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-02-28 19:28:17 +08:00
Wenkai Yin(尹文开) and GitHub
4a50306a0e
Merge pull request #4697 from j4m3s-s/fix-labels
...
Fix labels removed in ObjectMeta
2022-02-28 14:05:02 +08:00
Wenkai Yin(尹文开) and GitHub
8aaeed4411
Merge pull request #4686 from reasonerjt/fix-4080
...
Bypass the remap CRD version plugin when v1beta1 CRD is not supported
2022-02-28 10:57:52 +08:00
Daniel Jiang and GitHub
1cf61dd1aa
Merge pull request #4084 from MatthieuFin/main
...
Add full support for setting securityContext for restic restore
2022-02-24 20:18:09 +08:00
MatthieuFin
a57298254f
Fix typo on tests fields name and add another test with gesture of errors wanted on equals
...
Signed-off-by: MatthieuFin <matthieu2717@gmail.com >
2022-02-24 12:09:04 +01:00
James Landrein
cb11bf1924
Fix labels removed in ObjectMeta
...
Signed-off-by: James Landrein <github@j4m3s.eu >
2022-02-24 10:25:49 +01:00
James Landrein and GitHub
77be862b9c
Add support for --pod-labels ( #4694 )
...
* Add support for --pod-labels
* Add changelog
Signed-off-by: James Landrein <github@j4m3s.eu >
2022-02-24 17:00:14 +08:00
Daniel Jiang and GitHub
ea38f84c53
Merge pull request #4660 from blackpiglet/update-onwer-references-in-backup-descrip
...
Update --use-owner-references-in-backup description in velero command…
2022-02-24 15:47:34 +08:00
qiuming and GitHub
17043cd5cd
Merge pull request #4518 from ywk253100/220112_restic_prune
...
Fix bug to make the restic prune frequency configurable
2022-02-24 14:20:34 +08:00
MatthieuFin
f6bdfd09c5
Merge remote-tracking branch 'upstream/main'
...
Signed-off-by: MatthieuFin <matthieu2717@gmail.com >
2022-02-23 15:03:15 +01:00
Daniel Jiang
0070138c62
Bypass the remap CRD version plugin when v1beta1 CRD is not supported
...
When velero is running on clusters that don't support v1beta1 CRD, the
plugin will not try to backup v1beta1 CRD.
The plugin should be kept for backward compatibility. It will be
removed when velero drop the support for k8s v1.21
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2022-02-22 18:59:47 +08:00
Xun Jiang
4c8d1c2693
Modify according to comments
...
1. rename zoneSeparator to gkeZoneSeparator
2. add example of regional PV's node affinity. modify test case description.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-02-22 16:23:10 +08:00
Xun Jiang
8c2a07b906
Update --use-owner-references-in-backup description in velero command line
...
Specify the risk of this parameter set to true. Add the issue first reported about this topic which includeds the google document illustrates about it.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-02-21 22:37:48 +08:00
Xun Jiang
7be12a9220
[fix] Add regional PV support for GKE
...
fix #4663 .
For GKE pv, when create backup, return all zones retrived from node affinity.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-02-21 22:04:21 +08:00
Xun Jiang
6d9004dc62
[fix] Avoid overwritten hook's exec.container parameter when running pod command executor
...
Fix #4499
When hook influnce multiple pods, current logic's first pod's container will overwrite the hook's exec.container parameter. That will cause the other pod fail on the hook executing.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-02-17 15:24:56 +08:00
bynare and GitHub
768a30618f
restic backupper: ignore volumes of non-running pods ( #4584 )
2022-02-16 05:34:58 +08:00
F. Gold
491942cf2d
Simplify by assuming nil is false and use boolptr util function
...
Signed-off-by: F. Gold <fgold@vmware.com >
2022-02-09 16:58:07 -08:00
F. Gold
95c43d5b65
Minor change to trigger GitHub actions
...
Signed-off-by: F. Gold <fgold@vmware.com >
2022-02-02 17:02:22 -08:00
F. Gold
131c6de407
Check for nil before logging DefaultVolumestToRestic value
...
Signed-off-by: F. Gold <fgold@vmware.com >
2022-02-02 10:53:03 -08:00
Dominic Brekau and GitHub
5fa7d08fa1
Use OrderedResources in schedules ( #4550 )
...
* Use OrderedResources in schedules
Make ParseOrderedResources public for use in schedules
Add changelog
Signed-off-by: Dominic <dominic@xdnx.org >
* Rename function in comment section
Signed-off-by: Dominic <dominic@xdnx.org >
2022-01-29 15:47:55 +08:00
Daniel Jiang and GitHub
2cbb881285
Merge pull request #4497 from dkeven/filterunmountedvol
...
Fix: skip not mounted volumes when backing up
2022-01-24 14:40:18 +08:00
dkeven
1e44edce67
Fix: skip not mounted volumes when backing up
...
Signed-off-by: dkeven <keven@kubesphere.io >
2022-01-18 17:53:01 +08:00
Wenkai Yin(尹文开)
fcad46ccdf
Check whether the volume is provisioned by CSI driver or not by the annotation as well
...
Check whether the volume is provisioned by CSI driver or not by the annotation as well
Fixes #4496
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-01-12 19:05:33 +08:00
Xun Jiang/Bruce Jiang and GitHub
947f85790f
Merge pull request #4514 from ywk253100/2220110_nodeport
...
Check the existence of the expected service when ignoring the NodePort already allocated error
2022-01-12 15:25:42 +08:00
Wenkai Yin(尹文开)
fb2722ffe5
Fix bug to make the restic prune frequency configurable
...
We introduces the installation option "--default-restic-prune-frequency" to make restic prune frequency configuration in the previous release, but there is a bug that make the option don't take effect. This commit fixes the bug by removing the evaluation part. The restic repository controller will take care the prune frequency for the repository
Fixes #3062
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-01-12 15:18:24 +08:00
Wenkai Yin(尹文开)
62779bbcc6
Check the existence of the expected service when ignoring the NodePort already allocated error
...
Check the existence of the expected service when ignoring the NodePort already allocated error
Fixes 2308
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-01-12 15:06:42 +08:00
Wenkai Yin(尹文开)
6c1f16a735
Initialize the labels field of velero backup-location create option
...
Initialize the labels field of `velero backup-location create` option to avoid #4484
Fixes #4484
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-01-06 10:35:39 +08:00
Daniel Jiang and GitHub
7c2dc143d5
Merge pull request #4391 from ywk253100/211123_anno
...
Keep the annotation "pv.kubernetes.io/provisioned-by" when restoring PVs
2021-12-21 11:08:25 +08:00
Wenkai Yin(尹文开)
648f3ac228
Keep the annotation "pv.kubernetes.io/provisioned-by" when restoring PVs
...
More details please refer to https://github.com/vmware-tanzu/velero/issues/3470#issuecomment-976279606
Fixes #3470
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2021-12-21 09:52:56 +08:00
Wenkai Yin(尹文开) and GitHub
c7cd95a374
Ignore the provided port is already allocated error when restoring the LoadBalancer service ( #4462 )
...
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2021-12-21 05:42:27 +08:00
Daniel Jiang and GitHub
d7aa82d8ed
Return the error when getting backup store in backup deletion controller ( #4465 )
...
Per discussion in
https://github.com/vmware-tanzu/velero/issues/4260#issuecomment-947721686
https://github.com/vmware-tanzu/velero/issues/4260#issuecomment-951347384
return the error to avoid a panic when downloading the backup tarball
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2021-12-21 05:38:13 +08:00
Xun Jiang
7ab4bfc632
Revert "Migrate backup sync controller from code-generator to kubebuilder ( #4423 )"
...
This reverts commit 5aaeb3ebbe .
2021-12-17 09:40:24 +08:00
Box-Cube and GitHub
69f6c8d0cd
Fix statefulsets volumeClaimTemplates storageClassName after use Changing PV/PVC Storage Classes ( #4375 )
...
* fix statefulsets volumeClaimTemplates storageClassName after use Changing PV/PVC Storage Classes
Signed-off-by: Box-Cube <64300761+Box-Cube@users.noreply.github.com >
* Fix (vmware-tanzu#4373)
Signed-off-by: Box-Cube <64300761+Box-Cube@users.noreply.github.com >
* Fix StatefulSet volumeClaimTemplates storageClassName(vmware-tanzu#4373)
Signed-off-by: Box-Cube <64300761+Box-Cube@users.noreply.github.com >
* Fix StatefulSet volumeClaimTemplates storageClassName(vmware-tanzu#4373)
Signed-off-by: Box-Cube <64300761+Box-Cube@users.noreply.github.com >
* Fix StatefulSet volumeClaimTemplates storageClassName(vmware-tanzu#4373)
Signed-off-by: Box-Cube <64300761+Box-Cube@users.noreply.github.com >
* Change the isStorageClassExist logic
Signed-off-by: Box-Cube <64300761+Box-Cube@users.noreply.github.com >
* Fix StatefulSet volumeClaimTemplates storageClassName(vmware-tanzu#4373)
Signed-off-by: Box-Cube <64300761+Box-Cube@users.noreply.github.com >
2021-12-16 14:50:56 +08:00
Xun Jiang/Bruce Jiang and GitHub
5aaeb3ebbe
Migrate backup sync controller from code-generator to kubebuilder ( #4423 )
...
* Migrate backup sync controller from code-generator to kubebuilder
1. use kubebuilder's reconcile logic to replace controller's old logic.
2. use ginkgo and gomega to replace testing.
Signed-off-by: Xun Jiang <jxun@vmware.com >
* Fix: modify code according to comments
1. Remove DefaultBackupLocation
2. Remove unneccessary comment line
3. Add syncPeriod default value setting logic
4. Modify ListBackupStorageLocations function's context parameter
5. Add RequeueAfter parameter in Reconcile function return value
Signed-off-by: Xun Jiang <jxun@vmware.com >
* Reconcile function use context passed from parameter
1. Use context passed from parameter, instead of using Reconciler struct's context.
2. Delete Reconciler struct's context member.
3. Modify test case accordingly.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2021-12-14 20:07:20 -05:00