Commit Graph

5517 Commits

Author SHA1 Message Date
karmada-bot b5b065da8a
Merge pull request #5332 from a7i/work-suspend-event
work suspension: emit event for work dispatch status
2024-08-12 13:57:31 +08:00
karmada-bot f5f53c33c8
Merge pull request #5141 from liangyuanpeng/fix_test_k8s1.30
Fix test for corev1.LoadBalancerIngress,add IP model to VIP when ip is setting.
2024-08-12 11:23:32 +08:00
karmada-bot ea0c6b983f
Merge pull request #5336 from mohamedawnallah/unifyRandomStringLengthGeneration
test/e2e: unfiy random string length generation
2024-08-12 11:20:32 +08:00
karmada-bot 706c41ed2a
Merge pull request #5178 from zhzhuang-zju/slsa
chore: add slsa provenance to release assets
2024-08-12 09:31:31 +08:00
Lan Liang c9ccf9a849 Fix test for corev1.LoadBalancerIngress,add IP model to VIP when ip is setting.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-08-09 10:23:06 +00:00
Amir Alavi 8f707f35b4
work suspension: emit event for work dispatch status
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>

fix lint

fix lint
2024-08-09 06:15:05 -04:00
karmada-bot 37488bd109
Merge pull request #5331 from NishantBansal2003/unit-tests-util-common
Add unit tests for common.go in pkg/util
2024-08-09 17:53:29 +08:00
Nishant Bansal bf0294be91 Add unit tests for common.go in pkg/util
Signed-off-by: Nishant Bansal <nishant.bansal.mec21@iitbhu.ac.in>
2024-08-09 14:14:33 +05:30
Mohamed Awnallah f59ea2dea6 test/e2e: unfiy random string length generation
In this commit, we unify the generation of random string
length by utilizing `RandomStrLength` global constant.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-08-09 07:56:59 +00:00
karmada-bot 6e9136d5e9
Merge pull request #5310 from anujagrawal699/improveTestCoverage-pkg/controllers/context
Improve test coverage of pkg/controllers/context
2024-08-09 15:51:29 +08:00
karmada-bot 052b06ecc2
Merge pull request #5333 from a7i/duplicate-import
chore: remove duplicate imports
2024-08-09 14:52:29 +08:00
karmada-bot fa05f9b600
Merge pull request #5317 from a7i/work-suspend-work-status-conditions
work suspension: work status conditions
2024-08-09 14:45:29 +08:00
zhzhuang-zju de289c9931 chore: add slsa provenance to release assets
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-08-09 14:39:41 +08:00
karmada-bot 04c384444f
Merge pull request #5185 from jabellard/custom_crd_url2
Custom CRD Download Strategy Support for Karmada Operator
2024-08-09 11:57:29 +08:00
Amir Alavi 010d38954e
chore: remove duplicate imports
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-08-08 23:22:37 -04:00
karmada-bot 5a10d75828
Merge pull request #5324 from chaosi-zju/fixut
repair the test for rb status controller
2024-08-08 16:55:29 +08:00
karmada-bot c3c90efeeb
Merge pull request #5316 from qinguoyi/perf-findpath
perf:make findFeasiblePaths faster
2024-08-08 13:50:28 +08:00
chaosi-zju 16a4f42862 repair the test for rb status controller
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-08-08 12:18:39 +08:00
qinguoyi df681d0861 chore:clean up
Signed-off-by: qinguoyi <1532979219@qq.com>
2024-08-08 10:55:03 +08:00
qinguoyi 2db9dc4811 chore:clean up
Signed-off-by: qinguoyi <1532979219@qq.com>
2024-08-08 10:55:03 +08:00
qinguoyi a98041281d perf:make findFeasiblePaths faster
Signed-off-by: qinguoyi <1532979219@qq.com>
2024-08-08 10:55:03 +08:00
karmada-bot 37dfa37515
Merge pull request #5311 from yike21/generation-helmrelease
Align federated helmreleases.helm.toolkit.fluxcd.io observedGeneration semantics with its native
2024-08-08 10:42:28 +08:00
Amir Alavi 1d8e0a029e
work suspension: work status conditions
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-08-07 22:25:05 -04:00
karmada-bot da74c2de65
Merge pull request #5302 from NishantBansal2003/add-unit-tests-util
Add 100% unit test coverage for annotation and label in pkg/util
2024-08-08 09:35:28 +08:00
karmada-bot 53da8194d8
Merge pull request #5295 from XiShanYongYe-Chang/update-left-slice-length
update left slice length in the resortAvailableClusters func
2024-08-07 18:42:27 +08:00
Nishant Bansal 5643f77e7b Add 100% unit test coverage for annotation and label in pkg/util
Signed-off-by: Nishant Bansal <nishant.bansal.mec21@iitbhu.ac.in>
2024-08-07 16:04:43 +05:30
Anuj Agrawal 4632376772 Improved test coverage of pkg/controllers/context
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-07 15:25:10 +05:30
karmada-bot d2adb3d9d3
Merge pull request #5282 from a7i/work-suspend-validation
work suspension: webhook validation
2024-08-07 16:25:28 +08:00
Anuj Agrawal 59fe3901a2 Improved test coverage of pkg/controllers/context
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-07 12:24:13 +05:30
Anuj Agrawal ad46b67e2d Improved test coverage of pkg/controllers/context
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-07 12:20:35 +05:30
Anuj Agrawal baff21a75a Improved Test Coverage of pkg/controllers/context
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-07 09:26:45 +05:30
Amir Alavi d9e174b014
work suspension: webhook validation
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-08-06 23:53:34 -04:00
Joe Nathan Abellard 1ae5bd1924 Initial strucutre
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Update crds

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Remove debug logs

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Remove debug logs

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Remove debug logs

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Remove debug logs

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Fix linting errors

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Address comments

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Update api

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Update api

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Address comments

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Address comments

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Address comments

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-08-06 12:15:16 -04:00
yike21 0cf72ac56a Align federated helmreleases.helm.toolkit.fluxcd.io observedGeneration semantics with its native
Signed-off-by: yike21 <yike21@qq.com>
2024-08-06 23:58:12 +08:00
karmada-bot b4b6d692ca
Merge pull request #5078 from Akash-Singh04/toplevelpermissionsforCI.yml
Define top level Permission for ci.yml workflow
2024-08-06 14:39:27 +08:00
karmada-bot 19f352938d
Merge pull request #5068 from aditya7302/ci-schedule-compatibility-token-permission
Define top level Permission for ci-schedule-compatibility workflow
2024-08-06 14:38:27 +08:00
karmada-bot c66b2b863f
Merge pull request #5298 from xovoxy/unified-ctx
optimize: used unified context in controller
2024-08-06 14:18:26 +08:00
karmada-bot 0badfc169f
Merge pull request #5079 from Akash-Singh04/toplevelpermissionsforcli.yml
Define top level Permission for cli.yml workflow
2024-08-06 12:47:27 +08:00
aditya7302 284b9def54 Define top level Permission for ci-schedule-compatibility workflow
Signed-off-by: aditya7302 <aditya7302@gmail.com>
2024-08-06 12:06:51 +08:00
Akash Singh c9131b0b28 Define top level Permission for cli.yml workflow
Signed-off-by: Akash Singh <akashsingh2210670@gmail.com>
2024-08-06 11:53:41 +08:00
xovoxy 38ee277de7 optimize: used unified context in controller
Signed-off-by: xovoxy <xilovele@gmail.com>
2024-08-06 11:44:20 +08:00
Akash Singh 165ebdf188 Define top level Permission for ci.yml workflow
Signed-off-by: Akash Singh <akashsingh2210670@gmail.com>
2024-08-06 11:41:35 +08:00
karmada-bot 789c29f2f7
Merge pull request #5304 from whitewindmills/failover-api-validation
add validation for failover api
2024-08-06 11:37:27 +08:00
whitewindmills 384f260953 add validation for failover api
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-08-06 10:41:36 +08:00
karmada-bot 4124ba8513
Merge pull request #5299 from whitewindmills/app-failover-logs
cleanup: Print seconds to avoid unreadable minutes
2024-08-06 10:27:26 +08:00
karmada-bot 920baceafd
Merge pull request #4838 from a7i/work-suspend
feat: cluster-level resource propagation pause and resume capabilities
2024-08-06 09:38:27 +08:00
whitewindmills 4af54fb68b Print seconds to avoid unreadable minutes
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-08-05 19:04:34 +08:00
changzhen 1b4e829ffd update left slice length in the resortAvailableClusters func
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-08-05 17:24:35 +08:00
karmada-bot 8b4e006f03
Merge pull request #5244 from mohamedawnallah/testKarmadactlTaintCommand
test/e2e/karmadactl_test.go: test taint command
2024-08-05 17:23:26 +08:00
Mohamed Awnallah 37af811de6 test/e2e/karmadactl_test.go: test taint command
In this commit, we add e2e tests for the `karmadactl taint`
command to ensure it handles various scenarios correctly.
The tests include:

- Applying taints with different effects (NoSchedule, NoExecute) to a cluster.
- Reapplying taints without the `--overwrite` flag to ensure an error is returned.
- Overwriting existing taints using the `--overwrite` flag.
- Removing taints from a cluster.
- Running the taint command in `--dry-run` mode to ensure no actual changes are made.
- Verifying that taints were not applied during `--dry-run` mode.
- Ensuring the command returns an error for an invalid flag.
- Ensuring the command returns an error when attempting to taint a non-existent cluster.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
Co-authored-by: zhzhuang-zju <m17799853869@163.com>
2024-08-05 03:48:17 +00:00