Xun Jiang
cabb04575e
Fix the push action invalid variable ref issue.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-09-27 23:33:37 +08:00
Xun Jiang
4847eeaf62
Use different go version check logic for main and other branches.
...
main branch will read go version from go.mod's go primitive, and
only keep major and minor version, because we want the actions to use
the lastest patch version automatically, even the go.mod specify version
like 1.24.0.
release branch can read the go version from go.mod file by setup-go
action's own logic.
Refactor the get Go version to reusable workflow.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-09-19 16:58:18 +08:00
Xun Jiang
e8208097ba
Bump k8s library to v1.33.
...
Replace deprecated EventExpansion method with WithContext methods.
Modify UTs.
Align the E2E ginkgo CLI version with go.mod
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-09-10 17:58:38 +08:00
Xun Jiang
4c30499340
Add v1.34.0 for v1.17 compatible k8s versions.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-09-10 17:28:23 +08:00
Xun Jiang
8e1c4a7dc5
Add E2E cases for node-agent-configmap.
...
Run the E2E test on kind / build (push) Failing after 11s
Run the E2E test on kind / setup-test-matrix (push) Successful in 2s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
Fix the default BackupRepoConfig setting issue.
Delete PriorityClass in migration case clean stage.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-09-02 15:03:20 +08:00
Xun Jiang
996d2a025f
Add E2E test cases for repository maintenance job configuration.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-08-28 20:06:15 +08:00
Xun Jiang
b0c182cbf0
Add document change for 9196.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-08-27 13:48:45 +08:00
Xun Jiang
c62a486765
Add ConfigMap parameters validation for install CLI and server start.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-08-22 20:31:38 +08:00
Xun Jiang
2178d36d14
Change the CreateFileToPod function's OS parameter as the E2E pass-in value.
...
Run the E2E test on kind / build (push) Failing after 9s
Run the E2E test on kind / setup-test-matrix (push) Successful in 2s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
Fix GetResourceWithLabel's bug: labels were not applied.
Add workOS for deployment and pod creationg.
Add OS label for select node.
Enlarge the context timeout to 10 minutes. 5 min is not enough for Windows.
Enlarge the Kibishii test context to 15 minutes for Windows.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-08-21 09:34:06 +08:00
Xun Jiang
0f43f999db
Update the E2E upgrade test's from versions.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-08-20 23:13:36 +08:00
Xun Jiang and Xun Jiang/Bruce Jiang
ce09996854
Fix [Basic][Snapshot] failure on AddintionalBSL case.
...
It failed with fetching the wrong VolumeInfo. Correct it.
Add AdditionalBSL label for applied cases.
Remove not needed default BSL kibishii test for additional bsl case.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-08-08 19:43:43 +08:00
Xun Jiang
6161e62581
Fix the repository-maintenance-job-configmap format issue in doc.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-08-08 11:37:08 +08:00
Xun Jiang and Xun Jiang/Bruce 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
Xun Jiang
59aff12757
Modify [Basic][Restic] case check PVB and PVR count logic.
...
PVB and PVR used to print related pod namespace in output.
In v1.17, the behavior changed. Use backup or restore name to filter them.
Shorten the timeout context from 1h to 5m, because AWS was not covered anymore.
Remove an used if branch for vSphere.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-08-07 17:12:21 +08:00
Xun Jiang
c84aab7f6f
Remove the WaitUntilVSCHandleIsReady from vs BIA.
...
Becasue the pvc BIA already run WaitUntilVSCHandleIsReady,
no need to do the same work in vs BIA.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-07-31 15:35:05 +08:00
Xun Jiang and Xun Jiang/Bruce Jiang
7b872473df
Use const to represent snapshot.storage.kubernetes.io/managed-by.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-07-30 08:06:22 +08:00
Xun Jiang and Xun Jiang/Bruce Jiang
a61a073aea
Avoid checking the VS and VSC status in the backup finalizing phase.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-07-24 13:28:05 +08:00
Xun Jiang
dbbfb705e9
Use 1.24 instead of v1.24.0, and remove toolchain.
...
The reason is toolchain cannot update automatically.
If 1.24 can force CI use the latest patch version,
and it will not force user to upgrade their local go version,
this should be the better approach.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-07-24 11:30:08 +08:00
Xun Jiang and Xun Jiang/Bruce 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
f2133c7d22
The backup and restore data mover node selection.
...
Update Makefile to let the `make serve-docs` work again.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-07-01 16:26:12 +08:00
Xun Jiang
daff6ab685
The modification of VGDP affinity design.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-06-12 16:34:21 +08:00
Xun Jiang
1b7175394a
Skip VS and VSC not created by backup.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-06-07 10:51:05 +08:00
Xun Jiang and Xun Jiang/Bruce Jiang
f604a5da48
Add BSL status check for backup/restore operations.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-05-30 10:21:32 +08:00
Xun Jiang
8ce07eb94c
Remove CSI VS and VSC metadata from backup.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-05-29 16:20:06 +08:00
Xun Jiang and Xun Jiang/Bruce Jiang
2d71430e80
Skip namespace in terminating state in backup resource collection.
...
To make sure resources in terminating namespaces are not included.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-05-29 10:32:32 +08:00
Xun Jiang and Xun Jiang/Bruce Jiang
e736376d69
Add Velero-installed namespace to exlucde list for scale test.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-05-28 17:00:14 +08:00
Xun Jiang
a18fe55585
Support Windows E2E.
...
* Please notice only Kibishii workload support Windows test,
because the other work loads use busybox image, and not support Windows.
* Refactor CreateFileToPod to support Windows.
* Add skip logic for migration test if the version is under 1.16.
* Add main in semver check.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-05-20 15:58:15 +08:00
Xun Jiang
a6486fbe44
Add velero.io APIs availability check in Velero E2E install function.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-05-16 14:21:58 +08:00
Xun Jiang
14e1055a9a
Support using image registry proxy in more cases.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-05-14 08:47:00 +08:00
Xun Jiang
d3e8e9a9c2
Remove pushing images to GCR.
...
Remove dependency with GCR.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-05-08 20:42:21 +08:00
Xun Jiang
b475124651
Add default bakcup repository configuration for E2E.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-04-09 15:54:52 +08:00
Xun Jiang
6002d56735
Align the E2E upgrade test's CLI and image version.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-03-28 17:12:16 +08:00
Xun Jiang
9d0493c2b5
Bump the migration and upgrade E2E test source version.
...
Add v1.16 related plugin and other image default version.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-03-28 11:41:39 +08:00
Xun Jiang
6a0c6d5b75
Fix the non data mover migration failure.
...
Migration cases use the Kibishii as the workload, and SC mapping
ConfigMap was needed for all scenarios, because standby cluster
doesn't have the Kibishii SC after setting up.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-03-27 18:35:30 +08:00
Xun Jiang
96760885dc
Bump the golang.org/x/net to v0.36.0 to fix Restic CVE.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-03-27 11:02:33 +08:00
Xun Jiang
1652e6b27f
Modify how the restore workflow using the resource name.
...
The restore workflow used name represents the backup resource and the
restore to be restored, but the restored resource name may be different
from the backup one, e.g. PV and VSC are global resources, to avoid
conflict, need to rename them.
Reanme the name variable to backupResourceName, and use obj.GetName()
for restore operation.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-03-20 18:42:09 +08:00
Xun Jiang
b83148f626
Fix the JSON format error in the repository-maitenance.md
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-03-13 16:45:53 +08:00
Xun Jiang
6b7dd12bf7
Modify VS and VSC restore actions.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-02-25 10:44:45 +08:00
Xun Jiang
eb77151f48
Delete VSC after backup completes.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-02-19 14:36:59 +08:00
Xun Jiang
620a116e7f
Modify CSI related DeleteItemActions.
...
Remove the VS DIA.
Modify the VSC DIA: create then delete the VSC.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-02-19 14:36:59 +08:00
Xun Jiang
3843ae7030
Delete VolumeSnapshotContent from the backup sync process.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-02-19 14:36:59 +08:00
Xun Jiang
e736ef71df
Modify golangci configuration to make it work.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-02-19 13:58:04 +08:00
Xun Jiang
e68dca0112
Bump Restic go.mod to fix CVEs.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-12-24 11:19:02 +08:00
Xun Jiang
9486bd0acb
Skip the deprecation message for the dry-run install CLI JSON output.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-12-24 11:04:23 +08:00
Xun Jiang
938dd3c661
Modify the Init logic to fix the migration case error.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-12-24 11:00:42 +08:00
Xun Jiang
226370d035
Add nil check for updating DataUpload VolumeInfo in finalizing phase.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-12-03 10:50:55 +08:00
Xun Jiang
8fcb6de323
Refactor the migration cases.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-11-26 11:04:54 +08:00
Xun Jiang
226d50d9cb
Modify the schedule cases.
...
* Modify the OrderResource case's verification code.
* Simplify the Periodical case.
* Simplify the InProgess case.
* Prettify the code.
* Replace math/rand with crypto/rand
* Replace PollUnitl with PollUntilContextTimeout
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-11-21 15:16:50 +08:00
Xun Jiang
e5354e123b
Modify the StorageClass install and delete code.
...
* Only install and uninstall SC and VSC once for default cluster.
* Install and uninstall SC and VSC for standby cluster on migration case.
* Refactor the StorageClass and VolumeSnapshotClass YAMLs.
* Prettify the e2e_suite_test.go
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-11-19 11:10:50 +08:00
Xun Jiang
bebea4d278
Modify upgrade and migration cases.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-11-13 23:11:20 +08:00
Xun Jiang
bcb60ed783
Modify other cases to support VKS environment.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-11-12 23:25:50 +08:00
Xun Jiang
b02fc1da96
E2E supports VKS data mover environment.
...
* Add new flag HAS_VSPHERE_PLUGIN for E2E test.
* Modify the E2E README for the new parameter.
* Add the VolumeSnapshotClass for VKS.
* Modify the plugin install logic.
* Modify the cases to support data mover case in VKS.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-11-12 23:25:28 +08:00
Xun Jiang
d5d5cc6589
Remove crd-verify-kind action because the e2e-test-kind already cover it.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-11-11 15:47:35 +08:00
Xun Jiang
29d84feb10
Refactor the code to get the plugin images for migration cases.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-10-30 15:53:44 +08:00
Xun Jiang
82ce1fa44f
Fix the KIBISHII_DIRECTORY parameter not work for make test-e2e issue.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-10-24 17:19:50 +08:00
Xun Jiang
e8267abdf9
Make change to support VKS environment.
...
FYI, the TKGm envrionment support is deprecated.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-10-24 17:19:50 +08:00
Xun Jiang
1831c7b2dc
Bump the E2E migration and upgrade Velero and plugin versions for 1.15
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-10-22 14:38:19 +08:00
Xun Jiang
6a1d8dfc6c
Fix the context choosing error after migration case.
...
Change the FAIL_FAST default value to false.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-10-15 13:49:32 +08:00
Xun Jiang
5dcb315b10
Bump v1.13 and 1.14 plugin versions for E2E test.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-09-23 20:26:39 +08:00
Xun Jiang
1ba78b83bf
Skip uninstall and resource cleanup when fail-fast is enabled.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-09-23 20:24:14 +08:00
Xun Jiang
68f3545424
Add the ConfigMap-specified parameters into velero install CLI.
...
Rename backup-repository-config to backup-repository-configmap.
Rename repo-maintenance-job-config to repo-maintenance-job-configmap.
Rename node-agent-config to node-agent-configmap.
Add those three parameters to `velero install` CLI.
Modify the design and the site documents.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-09-12 11:24:14 +08:00
Xun Jiang
f1846be634
Enable --fail-fast by default for E2E and performance tests.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-09-10 22:25:08 +08: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
Xun Jiang
c2cd6b7176
Add resource modifier for velero restore describe CLI
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-08-22 00:01:56 +08:00
Xun Jiang
af62dd4b3e
Modify E2E and perf test result output directory.
...
Add LongTime label to more E2E cases.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-08-20 10:58:32 +08:00
Xun Jiang
c0402075fb
Remove code-generator from hack/update-3generated-crd.code.sh
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-08-15 17:27:30 +08:00
Xun Jiang
4ffc6d17b2
Delete the pkg/generated directory.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-08-14 10:35:23 +08:00