Xun Jiang/Bruce Jiang and GitHub
25402b6209
[1.18] Deprecate inactive maintained packages ( #9912 )
...
Run the E2E test on kind / get-go-version (push) Successful in 59s
Run the E2E test on kind / setup-test-matrix (push) Successful in 4s
Main CI / get-go-version (push) Successful in 14s
Run the E2E test on kind / build (push) Failing after 1m48s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
Main CI / Build (push) Failing after 25s
* Replace github.com/robfig/cron/v3 by github.com/netresearch/go-cron
Replace k8s.io/utils/pointer with k8s.io/utils/ptr
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
* Replace gopkg.in/yaml.v3 by go.yaml.in/yaml/v3
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
* Replace github.com/joho/godotenv.
Move the needed code into Velero repository.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
* Replace github.com/pkg/errors by github.com/cockroachdb/errors
Change errors.Cause to errors.Is, because github.com/cockroachdb/errors
New() function create a error with error stack with depth 1, but
github.com/pkg/errors's New() function create error with no depth.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
---------
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com >
2026-07-10 11:20:34 +08:00
Xun Jiang and Xun Jiang/Bruce Jiang
64e3643006
Fix linter error reported.
...
Run the E2E test on kind / get-go-version (push) Failing after 1m17s
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
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-11-26 14:16:42 +08:00
Matthieu MOREL
07ea14962c
fix require-error rule from testifylint
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-06-23 15:39:54 +00:00
Matthieu MOREL
f42335c8af
fix empty rule from testifylint
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-06-22 22:41:08 +02:00
Matthieu MOREL
ef04ef6361
golangci-lint: use exclude-rules instead of skip-files and skip-dirs
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-03-27 20:17:34 +00:00
Xun Jiang
d70535b6d2
Add nolintlint linter.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-11-29 11:13:46 +08:00
Luis Davim
28c5dc9fda
fix: load AWS config and assume role
...
Signed-off-by: Luis Davim <dluis@vmware.com >
2023-08-09 13:26:30 +01:00
Xun Jiang
d7f1ea4fbd
Add exit code log and possible memory shortage warning log for Restic command failure.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-07-05 21:35:52 +08:00
Xun Jiang/Bruce Jiang and GitHub
a8a17d725a
Merge pull request #6194 from blackpiglet/linter_more
...
Enable more linters, and remove mal-functioned milestoned issue action.
2023-04-26 14:12:47 +08:00
Xun Jiang
443f732e51
Enable more linters, and remove mal-functioned milestoned issue action.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-25 23:31:51 +08:00
Xun Jiang
180cc4e31d
Enable linter revive and resolve found errors: part 1
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-25 23:15:15 +08:00
Xun Jiang
bbc1e2e151
Enable stylecheck linter and resolve found issues.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-25 14:37:02 +08:00
Xun Jiang
fc692c49e6
Update Golang version to v1.19 for branch main.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-04 12:00:19 +08:00
15d44724e7
Modify golangci.yaml file. Resolve found lint issues. ( #6008 )
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
Co-authored-by: Xun Jiang <blackpiglet@gmail.com >
2023-03-24 12:15:08 +08:00
Fish-pro and GitHub
843c70959f
Clean up unnecessary convert ( #5819 )
...
Signed-off-by: Fish-pro <zechun.chen@daocloud.io >
2023-02-06 14:50:31 +08:00
Xun Jiang/Bruce Jiang and GitHub
345abb3142
Merge pull request #5534 from qiuming-best/backup-progress
...
fix restic backup progress error
2022-11-02 17:15:30 +08:00
Ming
32637da16b
fix restic backup progress error
...
Signed-off-by: Ming <mqiu@vmware.com >
2022-11-02 07:49:00 +00:00
Lyndon-Li
9695340c12
repo config for s3 compatible store
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-10-24 19:48:09 +08:00
Lyndon-Li
d7b4583b2b
fix lint errors
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-10-18 21:53:47 +08:00
lyndon and GitHub
c81f0db886
rename pvbr param ( #5370 )
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-09-23 09:13:36 +08:00
Ming
eb974687a7
merge upstream code
...
Signed-off-by: Ming <mqiu@vmware.com >
2022-09-02 01:45:12 +00:00
Ming
ed71e65486
Merge branch 'main' of https://github.com/qiuming-best/velero into uploader-restic
2022-08-29 11:33:59 +00:00
Ming
f15757a3d8
Uploader Implementation: Restic backup and restore
...
Signed-off-by: Ming <mqiu@vmware.com >
2022-08-29 09:33:37 +00:00
Wenkai Yin(尹文开)
4a5647a891
Move the code in pkg/restic/common.go to the proper package
...
Move the code in pkg/restic/common.go to the proper package
Fixes #5243
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-08-29 10:04:58 +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
Wenkai Yin(尹文开) and GitHub
092fc01e8d
Splic pkg/restic package ( #5143 )
...
This commit splits the pkg/restic package into several packages to support Kopia integration works
Fixes #5055
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-08-05 17:15:38 +08:00
lyndon and GitHub
088eb9b83c
repo credentials ( #5167 )
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-08-04 15:20:02 +08:00
lyndon and GitHub
52fd18e9db
Kopia Integration Change - Storage Configuration ( #5142 )
...
* unified repo storge config
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
* add UT
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-07-29 16:06:18 +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
Xun Jiang
806234e043
Add more information for failing to get path or snapshot in restic backup and restore.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-06-13 11:32:55 +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
Ming
06d3d731ed
Refactor restic repository
...
Signed-off-by: Ming <mqiu@vmware.com >
2022-04-29 10:26:00 +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
Xun Jiang
8064421e83
Update integrated Restic version and add insecureSkipTLSVerify for Restic CLI
...
1. Add --insecure-tls for ResticManager's commands.
2. Add --insecure-tls in PodVolumeBackup and PodVolumeRestore controller.
3. Upgrade integrated Restic version to v0.13.1
4. Change --last flag in Restic command to --latest=1 due to Restic version update.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-04-18 21:29:33 +08: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
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
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
bynare and GitHub
768a30618f
restic backupper: ignore volumes of non-running pods ( #4584 )
2022-02-16 05:34:58 +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
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(尹文开)
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
Daniel Jiang and GitHub
130602d723
Return the error if velero failed to detect S3 region for restic repo ( #4343 )
...
The error should be returned explicitly, because when the default URL is
used S3 will return a 301 and the response can't be handled by restic.
Fixes #4178
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2021-11-15 20:20:27 +08:00
Bridget McErlean and GitHub
edeec848d3
Skip restic backup/restore of DownwardAPI volumes ( #4076 )
...
Velero was including DownwardAPI volumes when backing up with restic.
When restoring these volumes, it triggered a known issue with restic (as
seen in #3863 ). Like projected volumes, these volumes should be skipped
as their contents are populated by the Kubernetes API server.
With this change, we are now skipping the restic backup of volumes with
a DownwardAPI source. We are also skipping the restore of any volume
that had a DownwardAPI source as there will exist backups that were
taken prior to this fix being introduced. This will allow these backups
to be restored succesfully.
Signed-off-by: Bridget McErlean <bmcerlean@vmware.com >
2021-09-01 13:51:44 +08:00
Marcel Haupt and GitHub
7cb614789c
Restic Backup: Add check if Pod is successful or failed for emptyDir.… ( #3993 )
...
* Restic Backup: Add check if Pod is successful or failed for emptyDir. Fix #3812
* Add changelog
Signed-off-by: mahaupt <marcel.haupt@gepardec.com >
2021-08-04 12:53:06 +08:00
Scott Seago and GitHub
ff916b74e9
Merge pull request #3857 from zubron/use-region-in-bsl-for-restic-repo-identifier
...
Use region in BSL for restic repo identifier
2021-07-13 10:56:20 -04:00
Bridget McErlean and GitHub
f727e070cb
Skip volume restores from projected sources ( #3877 )
...
In #3863 , it was discovered that volumes from projected sources were
being backed up by restic when they should have been skipped. Restoring
these volumes triggers a known bug in restic.
In #3866 , we started skipping volumes from a projected source, however
there will exist backups that were taken before this fix was introduced.
This change modifies the restore logic to skip the restore of any volume
that came from a projected source, allowing backups taken before #3866
to be restored successfully.
Signed-off-by: Bridget McErlean <bmcerlean@vmware.com >
2021-06-17 11:00:37 -07:00
Alay Patel
57a76b7a6b
skip backuping projected volume
...
Signed-off-by: Alay Patel <alay1431@gmail.com >
2021-06-11 00:11:27 -04:00
Bridget McErlean
a95b035bf3
Refactor GetRepoIdentifier tests and add new case
...
Also refactor the AWS `getRepoPrefix` logic to remove use of `switch`
statement.
Signed-off-by: Bridget McErlean <bmcerlean@vmware.com >
2021-06-09 16:40:45 -04:00
Scott Seago and GitHub
20eb92f9dd
Add PVC UID label to PVR (as we already have for PVB) ( #3792 )
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2021-05-20 09:16:06 +08:00
Jalaja
40a1b62c09
use region input to detect the Bucket region
...
Signed-off-by: Jalaja Ganapathy <jalaja@replicated.com >
Signed-off-by: Jalaja <jalaja@replicated.com >
2021-03-24 00:26:51 +00:00