Commit Graph

5490 Commits

Author SHA1 Message Date
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
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
karmada-bot d2adb3d9d3
Merge pull request #5282 from a7i/work-suspend-validation
work suspension: webhook validation
2024-08-07 16:25:28 +08:00
Amir Alavi d9e174b014
work suspension: webhook validation
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-08-06 23:53:34 -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
karmada-bot 57b45b2f50
Merge pull request #5293 from zhzhuang-zju/cleanupe2e
cleanup: Remove redundant e2e testing steps
2024-08-03 14:23:24 +08:00
zhzhuang-zju 978ea81937 cleanup: Remove redundant e2e testing steps
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-08-03 11:17:11 +08:00
karmada-bot 6b87604fed
Merge pull request #5281 from grosser/grosser/role-labels
add karmada.io/system label to created clusterrole+bindings
2024-08-02 18:04:23 +08:00
karmada-bot 04a4d84093
Merge pull request #5287 from mohamedawnallah/addFederatedResourceQuotaValidationTests
pkg: test `federatedresourcequota` webhook
2024-08-02 10:38:23 +08:00
Mohamed Awnallah 7373ab303e pkg: test `federatedresourcequota` webhook
In this commit, we add unit tests for the `FederatedResourceQuota`
validation logic and its related components. The tests ensure that
the validation logic correctly handles various scenarios, including:

- Validating `FederatedResourceQuota` specifications with appropriate resource assignments.
- Detecting cases where overall resource limits are less than the assigned resources.
- Handling scenarios where resource names in assignments do not exist in the overall resources.
- Validating `FederatedResourceQuotaStatus` to ensure standard resource types and correct cluster names.
- Handling invalid resource lists in both `Overall` and `AggregatedStatus`.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-08-01 02:39:44 +00:00
Michael Grosser f4df03f6e0
add karmada.io/system label to created clusterrole+bindings
Signed-off-by: Michael Grosser <michael@grosser.it>
2024-07-31 18:46:21 -07:00
karmada-bot 1432ecaf78
Merge pull request #5283 from xovoxy/code-optimization
optimize: used a unified context in cluster_controller reconcile
2024-08-01 09:22:22 +08:00
xovoxy f30e450a36 optimize: used a unified context in cluster_controller reconcile
Signed-off-by: xovoxy <xilovele@gmail.com>
2024-07-31 15:36:58 +08:00
karmada-bot 145a67e873
Merge pull request #5280 from XiShanYongYe-Chang/update-pluginToClusterScores-length
[Cleanup] update pluginToClusterScores length from filterPlugins length to scorePlugins length
2024-07-30 22:17:21 +08:00
changzhen 0735ec0202 update pluginToClusterScores length from filterPlugins length to scorePlugins length
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-07-30 20:51:25 +08:00
karmada-bot 1c8c35581a
Merge pull request #5279 from whitewindmills/fix-e2e
Fix incorrect error code judgment in e2e tests
2024-07-30 18:51:20 +08:00
karmada-bot 987206ed9c
Merge pull request #5234 from chaosi-zju/patch
only generate json patch for status filed when patchBindingStatus
2024-07-30 17:31:21 +08:00
whitewindmills 575931523c Fix incorrect error code judgment in e2e tests
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-07-30 17:05:10 +08:00
chaosi-zju fbb7a5e926 only generate json patch for status filed when patchBindingStatus
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-07-30 15:37:50 +08:00
Amir Alavi 58dbd6b56e
feat: cluster-level resource propagation pause and resume capabilities
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-07-29 19:03:52 -04:00
karmada-bot 3a4861f4b8
Merge pull request #5267 from karmada-io/dependabot/docker/cluster/images/alpine-3.20.2
Bump alpine from 3.20.1 to 3.20.2 in /cluster/images
2024-07-29 17:43:20 +08:00
karmada-bot 8a86cd02af
Merge pull request #5263 from chaosi-zju/e2e-2
print all binding and related objects to log file after each e2e failure case
2024-07-29 17:12:20 +08:00
chaosi-zju 081681b27d print all binding and related objects to log file after each failure e2e case
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-07-29 15:34:59 +08:00
dependabot[bot] de0a4fdd7f
Bump alpine from 3.20.1 to 3.20.2 in /cluster/images
Bumps alpine from 3.20.1 to 3.20.2.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 05:17:09 +00:00
karmada-bot ec81ac7c80
Merge pull request #5259 from zhzhuang-zju/cleanupmark
optimization: add retry when clean up mark from resourcetemplate failed
2024-07-29 12:08:19 +08:00
karmada-bot 21b330c23c
Merge pull request #5223 from whitewindmills/agent-options
Standardize the health probe arguments
2024-07-27 22:05:18 +08:00
karmada-bot de744b11f3
Merge pull request #5145 from jabellard/operator_crd_url
Proposal: Custom CRD Download Strategy Support for Karmada Operator
2024-07-27 20:48:18 +08:00
karmada-bot ca6f17fcff
Merge pull request #5264 from zhzhuang-zju/SerialDescribe
fix unexpected interference between different e2e use cases
2024-07-27 18:35:18 +08:00
karmada-bot ff0b84d588
Merge pull request #5155 from liangyuanpeng/cleanup_kustomize
cleanup: use patches instead to patchesStrategicMerge for kustomize.
2024-07-27 17:18:18 +08:00
zhzhuang-zju 903648a9de fix unexpected interference between different e2e use cases
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-07-27 17:08:11 +08:00
Lan Liang c080e71024 cleanup: use patches instead to patchesStrategicMerge for kustomize.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-07-27 07:59:25 +00:00
karmada-bot 195c371fea
Merge pull request #5261 from a7i/e2e-clusterresourcebinding-annotation
e2e: clusterresourcebinding permanent-id label
2024-07-27 15:43:18 +08:00