Scott Seago
dd63e8182c
Follow-on fixes for BIAv2 controller work
...
Signed-off-by: Scott Seago <sseago@redhat.com>
2023-03-13 10:29:36 -04:00
Emily McMullan
ec4a7072b3
add server setting for default timeouts
...
Signed-off-by: Emily McMullan <emcmulla@redhat.com>
2023-03-10 10:15:09 -05:00
Xun Jiang/Bruce Jiang
7d7e3fff0d
Refoctor backup controller with controller-runtime. ( #5969 )
...
Signed-off-by: Ming <mqiu@vmware.com>
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
Co-authored-by: Ming <mqiu@vmware.com>
2023-03-10 08:59:40 +08:00
Xun Jiang/Bruce Jiang
6d8f086283
Merge pull request #5956 from Lyndon-Li/issue-fix-5935
...
Fix issue 5935
2023-03-09 15:28:47 +08:00
Lyndon-Li
40aae5ebdd
fix issue 5935
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-03-09 14:24:51 +08:00
Shubham Pampattiwar
c6059a93d2
Merge pull request #5873 from blackpiglet/add_psa_support
2023-03-08 17:41:53 -08:00
杨刚 (成都)
38a7707ce3
Unify pkg/install deployment args array. ( #5961 )
...
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-03-08 10:29:30 +08:00
Lyndon-Li
28d636bd71
fix client wait problem
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-03-08 09:29:16 +08:00
Scott Seago
c3d1d83da5
BIAv2 async operations controller work
...
Signed-off-by: Scott Seago <sseago@redhat.com>
2023-03-01 11:49:17 -05:00
Wenkai Yin(尹文开)
eb4ecd3767
Add restored resource list in the output of restore describe command
...
Add restored resource list in the output of restore describe command
Fixes #5199
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
2023-02-28 10:43:03 +08:00
Xun Jiang
c2ac76165e
Make restore controller adopting the controller-runtime framework.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
2023-02-25 11:55:02 +08:00
Xun Jiang/Bruce Jiang
a467488f1a
Merge pull request #5894 from Lyndon-Li/issue-fix-5881
...
Fix issue 5881
2023-02-24 17:23:10 +08:00
Shubham Pampattiwar
b23c541010
Merge pull request #5859 from hezhizhen/clock
...
Replace k8s.io/apimachinery/pkg/util/clock with k8s.io/utils/clock
2023-02-23 13:37:33 -08:00
danfengl
979fb9ccab
Roll back pkg client code for Velero server
...
Signed-off-by: danfengl <danfengl@vmware.com>
2023-02-22 14:11:02 +00:00
qiuming
d7defa7fb5
Merge pull request #5893 from reasonerjt/sa-rb
...
Do not create the rolebinding if user customize the service account
2023-02-22 14:35:06 +08:00
Lyndon-Li
08b8498afb
fix issue 5881
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-02-21 19:17:38 +08:00
Daniel Jiang
42a92e9b3d
Do not create the rolebinding if user customize the service account
...
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2023-02-21 18:20:38 +08:00
Xun Jiang/Bruce Jiang
5555f7d4e7
Merge pull request #5865 from allenxu404/issue4816
...
Add a json output to velero backup describe
2023-02-21 18:19:06 +08:00
allenxu404
16bf3e2d90
Add a json output to velero backup describe
...
Signed-off-by: allenxu404 <qix2@vmware.com>
2023-02-21 17:16:34 +08:00
Zhizhen He
fb1dc110f2
Replace k8s.io/apimachinery/pkg/util/clock with k8s.io/utils/clock
...
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-02-21 11:56:17 +08:00
Scott Seago
5f039b7f7c
Merge pull request #5224 from kaovilai/patch-3
...
gh-issue-template: Comment out the subheading description
2023-02-20 10:14:39 -05:00
Xun Jiang
6be07a1df3
Add labels for created namespace during velero installation to adopt k8s v1.25's PSS and PSA.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
2023-02-20 21:27:04 +08:00
Wenkai Yin(尹文开)
4d0c3ac83f
Restore finalizer and managedFields ( #5853 )
...
Restore finalizer and managedFields of metadata during the restoration
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
2023-02-20 10:26:45 +08:00
Scott Seago
fa58a775e8
Merge pull request #5576 from anshulahuja98/backupresults
...
Publish backup results to enhance error info
2023-02-18 17:00:49 -05:00
Anshul Ahuja
8c3ddf0f73
Publish backup results extracted from backup logs
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com>
2023-02-16 09:57:53 +05:30
lyndon
c5efb542d0
Merge pull request #5786 from qiuming-best/unsupport-type-error
...
Set Kopia IgnoreUnknownTypes in ErrorHandlingPolicy to True
2023-02-13 15:08:48 +08:00
lyndon
44bcc0959e
Merge pull request #5840 from kaovilai/pvb-pvr-should-fail-during-startup
...
move UpdatePVXStatusToFailed to controller pkg
2023-02-13 13:58:43 +08:00
Xun Jiang/Bruce Jiang
8f76907aff
Merge pull request #5843 from ywk253100/230208_secret
...
Add secret restore item action to handle service account token secret
2023-02-13 11:57:32 +08:00
Fish-pro
ef05af13bf
Clean up unused variables and functions ( #5818 )
...
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
2023-02-09 10:53:24 +08:00
Scott Seago
0be05c9bc8
Merge pull request #5788 from blackpiglet/enable_staticcheck
...
Enable staticcheck linter. Disable check for folder /pkg and /test by…
2023-02-08 19:26:22 -05:00
Wenkai Yin(尹文开)
731a484275
Add secret restore item action to handle service account token secret
...
Add secret restore item action to handle service account token secret:
1. Skip the restoration for the auto-created service account token secret
2. Remove several fields for non-auto-created service account token secret to make sure the secret can be restored
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
2023-02-08 15:52:11 +08:00
lyndon
7139daf07a
Merge pull request #5769 from Lyndon-Li/issue-fix-5458
...
Issue fix 5458
2023-02-08 09:59:15 +08:00
Tiger Kaovilai
3be7c33d3b
move UpdatePVXStatusToFailed to controller pkg
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
2023-02-07 10:20:30 -05:00
lyndon
53c3f4b436
Issue fix 5226 ( #5768 )
...
* fix issue 5226
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-02-07 17:47:25 +08:00
Ming
0fd5af3300
Set Kopia IgnoreUnknownTypes in ErrorHandlingPolicy to True for ignoring backup unknown file type
...
Signed-off-by: Ming <mqiu@vmware.com>
2023-02-07 08:30:58 +00:00
Scott Seago
5db9437f5e
Merge pull request #5540 from wenterjoy/main
...
change image repository by configmap
2023-02-06 20:31:47 -05:00
Scott Seago
19b855660a
Merge pull request #5828 from kaovilai/pvb-pvr-should-fail-during-startup
...
Use updated PVB/PVR for patching Failed Phase during startup
2023-02-06 15:08:59 -05:00
Scott Seago
53f3d13d7c
Merge pull request #5807 from shubham-pampattiwar/update-crd-desc
...
Update CRD descriptions for SnapshotVolumes and restorePVs
2023-02-06 14:56:28 -05:00
Xun Jiang/Bruce Jiang
218fd76411
Add mapped selected-node existence check. ( #5806 )
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
2023-02-06 17:03:35 +08:00
Fish-pro
a761111ba1
Optimize string contrast judgment ( #5821 )
...
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
2023-02-06 14:52:01 +08:00
Fish-pro
843c70959f
Clean up unnecessary convert ( #5819 )
...
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
2023-02-06 14:50:31 +08:00
Tiger Kaovilai
d7738532c8
Use updated PVB/PVR for patching Failed Phase during startup
...
Use the same pvb/pvr update functions across pkg/controller and pkg/cli/nodeagent for consistency of behavior
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
2023-02-03 14:22:56 -05:00
Xun Jiang/Bruce Jiang
0b6b841f2a
Remove redundant client from restore controller. ( #5759 )
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
2023-02-03 15:57:43 +08:00
wenterjoy
9d1ccedd44
modified according to review comments
...
Signed-off-by: wenterjoy <zhaoxin26@lenovo.com>
2023-02-02 02:27:31 +00:00
Daniel Jiang
8b0afa3c44
Add option "--service-account-name" to install cmd ( #5802 )
...
The option "--service-account-name" is to be added to that user can use
an existing service account for velero and node-agent pods. This is
helpful for users who wanna use IRSA.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2023-02-01 17:12:24 +08:00
qiuming
51568525cb
Merge pull request #5779 from allenxu404/issue-matrics
...
add prometheus metrics to record warning total and last status of backups
2023-01-31 16:02:30 +08:00
Shubham Pampattiwar
428415c004
update CRD descriptions for SnapshotVolumes and restorePVs
...
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
add changelog file
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
2023-01-31 00:01:40 -08:00
allenxu404
a5a165b0c3
add prometheus metrics to record warning total and last status of backups
...
Signed-off-by: allenxu404 <qix2@vmware.com>
2023-01-30 15:40:59 +08:00
Xun Jiang
955eec7033
Enable staticcheck linter. Disable check for folder /pkg and /test by now.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
2023-01-20 13:52:13 +08:00
Shubham Pampattiwar
d14879ff74
Merge pull request #5752 from sseago/itemoperations-json
...
Define itemoperations.json format and update DownloadRequest API.
2023-01-19 13:24:24 -05:00
lyndon
b0a16ceac1
Merge pull request #5760 from Lyndon-Li/issue-fix-5043
...
Issue fix 5043
2023-01-19 16:44:14 +08:00
Lyndon-Li
d23418b5b5
add change log
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-01-17 18:23:43 +08:00
Lyndon-Li
2574229fb0
add change log for 5769
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-01-16 19:15:49 +08:00
Lyndon-Li
2c4cfe5611
Merge branch 'main' into issue-fix-5458
2023-01-16 17:46:58 +08:00
Lyndon-Li
fc98268181
Merge branch 'main' into issue-fix-5043
2023-01-12 16:54:50 +08:00
Scott Seago
9f6f13f0c5
RestoreItemAction v2 API implementation
...
Signed-off-by: Scott Seago <sseago@redhat.com>
2023-01-10 16:26:28 -05:00
Shubham Pampattiwar
ab642ffff2
Merge pull request #5442 from sseago/biav2-impl2
...
BackupItemAction v2 API implementation
2023-01-10 09:34:03 -05:00
Scott Seago
9a54142257
BackupItemAction v2 API implementation
...
Signed-off-by: Scott Seago <sseago@redhat.com>
2023-01-09 18:36:47 -05:00
Scott Seago
70b4238013
Define itemoperations.json format and update DownloadRequest API.
...
This is to support uploading async operation metadata to
object storage to support progress monitoring.
Signed-off-by: Scott Seago <sseago@redhat.com>
2023-01-09 18:19:21 -05:00
lyndon
c27c395d50
Merge pull request #5730 from yanggangtony/log
...
fix log info : pkg/util/kube/isProvisionedByCSI
2023-01-09 14:27:42 +08:00
Daniel Jiang
722aead2fd
Merge pull request #5716 from jelipo/fix-json-name
...
fix json serialize name
2023-01-03 13:25:53 +08:00
Daniel Jiang
78682d7cc3
Merge pull request #5710 from sseago/async-cr-phases
...
backup/restore phases for async plugin operations
2023-01-03 13:24:58 +08:00
yanggang
62c00ba841
fix log info : pkg/util/kube/isProvisionedByCSI
...
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-01-03 10:37:19 +08:00
qiuming
5b03da2637
Merge pull request #5715 from Lyndon-Li/issue-fix-5696
...
[Main] Fix issue 5696
2022-12-22 10:49:25 +08:00
Scott Seago
2abb176bd8
backup/restore phases for async plugin operations
...
Signed-off-by: Scott Seago <sseago@redhat.com>
2022-12-21 10:15:32 -05:00
haining.cao
544df59f58
fix json serialize name
...
Signed-off-by: haining.cao <haining.cao@daocloud.io>
2022-12-21 18:54:45 +08:00
Lyndon-Li
32eb8655cc
fix issue 5696
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2022-12-21 12:49:23 +08:00
Ming
3b903e678f
[Cherry-Pick]Fix error with Restic backup empty volumes
...
Signed-off-by: Ming <mqiu@vmware.com>
2022-12-20 06:33:22 +00:00
Lyndon-Li
88a1317f48
fix issue 5043
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2022-12-15 20:00:54 +08:00
Dylan Murray
55873c1c37
Prevent nil panic on exec restore hooks ( #5675 )
...
* Prevent nil panic on exec restore hooks
Signed-off-by: Dylan Murray <dymurray@redhat.com>
2022-12-13 13:45:52 +08:00
Lyndon-Li
b51a17138e
fix issue 5458
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2022-12-01 15:12:07 +08:00
Daniel Jiang
2dce4a7cb5
Update the api-types doc
...
This commit makes update to the update api-types docs to add missing
fields.
It also includes misc changes to the inline comment, and a change to
Dockerfile to make sure the build-image works on mac
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2022-11-25 14:39:41 +08:00
Wenkai Yin(尹文开)
8194e8d723
Restore ClusterBootstrap before Cluster
...
Restore ClusterBootstrap before Cluster otherwise a new default ClusterBootstrap object is create for the cluster
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
2022-11-22 17:25:13 +08:00
Ming
bf1122b633
Fix controller problematic log output
...
Signed-off-by: Ming <mqiu@vmware.com>
2022-11-09 06:46:45 +00:00
Lyndon-Li
b06cb9ec60
remove gofrs uuid
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2022-11-07 16:28:33 +08:00
lyndon
cc9d492479
Merge pull request #5485 from Obmondo/fix/error-message
...
Fix pointer deference to string in error message
2022-11-04 14:15:56 +08:00
Xun Jiang/Bruce Jiang
1865aab28d
Merge pull request #5535 from ywk253100/221102_order
...
[cherry-pick]Enhance the restore priorities list to support specifying the low prioritized resources that need to be restored in the last
2022-11-03 14:53:10 +08:00
Wenkai Yin(尹文开)
c186a7d193
Enhance the restore priorities list to support specifying the low prioritized resources that need to be restored in the last
...
Enhance the restore priorities list to support specifying the low prioritized resources that need to be r
estored in the last
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
2022-11-03 10:53:32 +08:00
Xun Jiang/Bruce Jiang
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
Xun Jiang/Bruce Jiang
5db3da5aea
Merge pull request #5512 from Lyndon-Li/issue-fix-5505
...
Issue fix 5505
2022-11-01 19:38:39 +08:00
Xun Jiang/Bruce Jiang
ae1e42cfd7
Merge pull request #5478 from Lyndon-Li/s3-compatible-provider
...
Issue fix 5477
2022-11-01 19:38:26 +08:00
Ming
52a49d1945
fix backup failure with self-signed certification
...
Signed-off-by: Ming <mqiu@vmware.com>
2022-11-01 07:05:20 +00:00
Xun Jiang
41fc641298
Add credential file store in the backup deletion controller.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
2022-10-31 16:59:26 +08:00
Lyndon-Li
3571339fd6
issue fix 5505
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2022-10-31 11:09:46 +08:00
Xun Jiang/Bruce Jiang
150570feec
Remove redundancy code block left by #5388 . ( #5483 )
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
2022-10-27 14:20:26 +08:00
Faizan Ahmad
9d01432007
Fix pointer deference to string in error message
...
Signed-off-by: Faizan Ahmad <faizan@obmondo.com>
2022-10-25 07:52:00 +05:30
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
Xun Jiang/Bruce Jiang
660841dfbd
Merge pull request #5471 from ywk253100/221021_lib
...
update k8s.io dependencies to 0.24.0
2022-10-24 14:46:43 +08:00
Xun Jiang/Bruce Jiang
5027aae194
Add more nil pointer check for CSI related code in backup controller. ( #5388 )
...
Add some corner cases checking for CSI snapshot in backup controller.
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
2022-10-24 10:42:08 +08:00
Kira Boyle
b146a880c6
update k8s.io dependencies to 0.24.0
...
* This also required an update to use github.com/bombsimon/logrusr/v3
* 'WithClusterName' removed as per the k8s doc reasoning:
* https://github.com/kubernetes/apimachinery/blob/release-1.24/pkg/apis/meta/v1/types.go\#L257-L259
* ('ClusterName was a legacy field that was always cleared by the system and never used')
* Test was updated accordingly
Signed-off-by: Kira Boyle <kira@replicated.com>
2022-10-21 11:16:21 +08:00
Shubham Pampattiwar
c5339227fe
increase ensure restic repository timeout ( #5335 )
...
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
2022-10-19 16:26:45 +08:00
Daniel Jiang
fc038041fb
Merge pull request #5294 from cleverhu/change-CSISnapshotTimeout-to-normal-var
...
change CSISnapshotTimeout from pointer to normal variable
2022-10-19 15:31:47 +08:00
lyndon
162680b39c
Merge branch 'main' into velero-docker-image-go-1.18
...
Signed-off-by: lyndon <98304688+Lyndon-Li@users.noreply.github.com>
2022-10-19 09:29:36 +08:00
Shubham Pampattiwar
34cca77533
Add nil check before execution of csi snapshot delete
...
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
add changelog
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
2022-10-18 11:51:55 -04:00
Lyndon-Li
c92f06ef17
fix lint loop iterator problem
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2022-10-18 22:40:48 +08:00
Lyndon-Li
d7b4583b2b
fix lint errors
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2022-10-18 21:53:47 +08:00
Xun Jiang/Bruce Jiang
9cb46deb73
Add CSI VolumeSnapshot client back. ( #5449 )
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
2022-10-18 14:58:03 +08:00
lyndon
ad7e3ab8d5
Merge pull request #5446 from allenxu404/i5098
...
Change subcommand `velero restic` to `velero repo`
2022-10-17 18:28:51 +08:00
Xun Jiang/Bruce Jiang
d658f6564d
Merge pull request #5444 from Lyndon-Li/remove-restic
...
Pod Volume Backup/Restore Refactor: Remove Restic in code
2022-10-17 15:32:17 +08:00