Xun Jiang
ec99b50970
Remove the repository maintenance job parameters from velero server.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-08-07 23:25:22 +08:00
Shubham Pampattiwar
d8f222c83f
Add ConfigMap support for keepLatestMaintenanceJobs
...
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
add changelog file
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
lint fix
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2025-07-31 16:33:46 -07:00
Tiger Kaovilai
1daa685e7d
Make ResticIdentifier optional for kopia repositories ( #8987 )
...
The ResticIdentifier field in BackupRepository is only relevant for restic
repositories. For kopia repositories, this field is unused and should be
omitted. This change:
- Adds omitempty tag to ResticIdentifier field in BackupRepository CRD
- Updates controller to only populate ResticIdentifier for restic repos
- Adds tests to verify behavior for both restic and kopia repository types
This ensures backward compatibility while properly handling kopia repositories
that don't require a restic-compatible identifier.
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-07-24 22:25:09 -04:00
Xun Jiang
b5426516da
Make the backup repository controller doesn't invalidate the BSL on restart.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-07-02 17:57:06 +08:00
Xun Jiang/Bruce Jiang
5ebb055c57
Add UT for maintenance's DeleteOldJobs function. ( #9013 )
...
Unify the k8s.io/api/batch/v1 import alias to bactchv1api.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-06-26 20:49:26 -04:00
Wenkai Yin(尹文开)
d0374fadb6
Mark BackupRepository not ready when BSL changed
...
Mark BackupRepository not ready when BSL changed
Fixes #8860
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2025-05-27 14:43:14 +08:00
Xun Jiang/Bruce Jiang
fa156c3961
Don't run maintenance on the ReadOnly BackupRepositories.
...
Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com >
2025-02-13 13:46:53 +08:00
Matthieu MOREL
cbba3bdde7
chore: enable use-any from revive
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-01-17 07:58:10 +01:00
Lyndon-Li
3900f2f117
recall repo maintenance history on restart
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-01-15 15:05:02 +08:00
Lyndon-Li
fc9683688a
move maintenance to a separate folder
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-01-13 10:57:14 +08:00
Lyndon-Li
4ce7361f5a
recall repo maintenance history on restart
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-01-07 12:58:43 +08:00
Lyndon-Li
6b73a256d5
recall repo maintenance history on restart
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-01-06 17:11:03 +08:00
Lyndon-Li
db69829fd7
repo maintenance job out of repo manager
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-01-06 16:25:33 +08:00
Lyndon-Li
912b116bdb
always use job's time
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-01-03 16:50:35 +08:00
Lyndon-Li
6ff0aa32e3
recall existing repo maintenance to history
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-01-02 11:16:46 +08:00
Lyndon-Li
92390e9af5
add repo maintain result in history
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2024-12-23 15:37:27 +08:00
Lyndon-Li
3b2c50b459
add repo maintain result in history
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2024-12-19 16:20:15 +08:00
Lyndon-Li
c9bfd33077
isolate repo maintenane history
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2024-12-19 15:33:58 +08:00
Wenkai Yin(尹文开)
0a4e417aab
Bump up version of client-go and controller-runtime
...
Bump up version of client-go to v0.30.5
Bump up version of controller-runtime to v0.18.5
Fixes #8274
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2024-10-08 18:53:12 +08:00
Tiger Kaovilai
3f9c2dc789
Reduces ~140 indirect imports for plugin/framework importers ( #8208 )
...
* Avoid plugin framework importers from needing cloud provider imports
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2024-09-13 10:21:51 +08:00
Wenkai Yin(尹文开)
5b4c8cd5b1
Merge pull request #8198 from kaovilai/pes-controller
...
Add controller name to periodical_enqueue_source
2024-09-12 10:41:46 +08:00
Tiger Kaovilai
c8aa37d852
Remove additional param, use pkg/constant
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2024-09-11 17:13:37 -04:00
Tiger Kaovilai
5c4c66bee9
Add controller name to periodical_enqueue_source
...
The code changes are related to the `NewPeriodicalEnqueueSource` function in the `kube/periodical_enqueue_source.go` file. This function is used to create a new instance of the `PeriodicalEnqueueSource` struct, which is responsible for periodically enqueueing objects into a work queue.
The changes involve adding two new parameters to this function: `controllerName string` and modifying the existing `logger` parameter to include additional fields.
Here's what changed:
1. A new `controllerName` parameter was added to the `NewPeriodicalEnqueueSource` function.
These changes are to adding more context or metadata to the logging output, possibly for debugging or monitoring purposes.
The other files (`restore_operations_controller.go`, `schedule_controller.go`, and their respective test files) were modified to use this updated `NewPeriodicalEnqueueSource` function with the new `controllerName` parameter.
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2024-09-09 12:07:07 -04:00
Xun Jiang
26cc41f26d
Implement the Repo maintanence Job configuration design.
...
Remove the resource parameters from the velero server CLI.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-09-09 22:42:56 +08:00
Lyndon-Li
82d9fe4d4d
backup repo config
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2024-08-07 15:34:57 +08:00
Lyndon-Li
7b7727e808
issue 7620: backup repo config
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2024-07-31 16:41:27 +08:00
Ming Qiu
5eae542762
Fix maintenance job launched immediately after prune error
...
Signed-off-by: Ming Qiu <ming.qiu@broadcom.com >
2024-04-26 09:50:59 +00:00
Ming Qiu
8d63c76c92
Add maintenance job
...
Signed-off-by: Ming Qiu <mqiu@vmware.com >
2024-03-28 03:22:06 +00:00
Wenkai Yin(尹文开)
8752c3a820
Bump up the versions of severel Kubernetes-related libs
...
Bump up the versions of severel Kubernetes-related libs
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2024-03-05 13:09:38 +08:00
Tiger Kaovilai
a5c72a4866
BackupRepositories associated with a BSL are invalidated when BSL is (re-)created. ( #7380 )
...
* Add BackupRepositories invalidation on BSL Create
Simplify comments
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
* Simplify
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
---------
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2024-02-06 10:13:30 -05:00
Karthick Udayakumar
198fbf6873
fix typo maintenance of log message
...
Signed-off-by: Karthick Udayakumar <kudayakumar@vmware.com >
2024-01-17 22:30:41 -05:00
Xun Jiang
f051ecaee9
Enable errcheck linter and resolve found issues.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-28 09:33:42 +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
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
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
Lyndon-Li
5f7f69366c
remove restic from code
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-10-13 13:45:32 +08:00