-
Notifications
You must be signed in to change notification settings - Fork 891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed cluster affinity scheduling evaluation order when scheduling is triggered via WorkloadRebalancer #5425
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: mszacillo <mszacillo@bloomberg.net>
…-pick-of-#5012-upstream-release-1.10 Automated cherry pick of karmada-io#5012: Account for unschedulable plugin result during maxreplica
Signed-off-by: changzhen <changzhen5@huawei.com>
…cherry-pick-of-#5030-upstream-release-1.10 Automated cherry pick of karmada-io#5030: fix-remedy-e2e-errors
Bumps alpine from 3.20.0 to 3.20.1. --- updated-dependencies: - dependency-name: alpine dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
…cluster/images/release-1.10/alpine-3.20.1 Bump alpine from 3.20.0 to 3.20.1 in /cluster/images
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
…ry-pick-of-#5095-upstream-release-1.10 Automated cherry pick of karmada-io#5095: Fix the bug in interpreting the replicas of Job
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
…-pick-of-#5110-upstream-release-1.10 Automated cherry pick of karmada-io#5110: add sbom to release assests
… support configuration. Signed-off-by: Lan Liang <gcslyp@gmail.com>
…y-pick-of-#4899-upstream-release-1.10 Automated cherry pick of karmada-io#4899: chore: let kube version of artifaces/deploy/karmada-apiserver
Signed-off-by: mszacillo <mszacillo@bloomberg.net>
…ck-of-#5144-upstream-release-1.10 Automated cherry pick of karmada-io#5144: GroupClusters should sort by score and availableReplica count
Signed-off-by: changzhen <changzhen5@huawei.com>
…cherry-pick-of-#5188-upstream-release-1.10 Automated cherry pick of karmada-io#5188: Fix the issue of residual work in the MultiClusterService
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
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>
…cherry-pick-of-#5252-upstream-release-1.10 Automated cherry pick of karmada-io#5252: fix: `ClusterResourceBinding` scope in
…cluster/images/release-1.10/alpine-3.20.2 Bump alpine from 3.20.1 to 3.20.2 in /cluster/images
Signed-off-by: Bharath Guvvala <bharath.reddy@flipkart.com>
Signed-off-by: Bharath Guvvala <bharath.reddy@flipkart.com>
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #5425 +/- ##
==========================================
- Coverage 48.18% 48.17% -0.02%
==========================================
Files 664 664
Lines 54799 54805 +6
==========================================
- Hits 26405 26402 -3
- Misses 26680 26686 +6
- Partials 1714 1717 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/retest |
Hi, there are still two nits:
thanks~ |
0f4c0df
to
292904e
Compare
292904e
to
9e9d837
Compare
Adding label Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
9e9d837
to
30d242e
Compare
* pkg/karmadactl/addons: unit test install addons In this commit, we unit test install addons to make sure the following addons `karmada-descheduler`, `karmada-metrics-adapter`, `karmada-scheduler-estimator`, and `karmada-search` are already configured. Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> * build(deps): bump rajatjindal/krew-release-bot from 0.0.46 to 0.0.47 Bumps [rajatjindal/krew-release-bot](https://github.com/rajatjindal/krew-release-bot) from 0.0.46 to 0.0.47. - [Release notes](https://github.com/rajatjindal/krew-release-bot/releases) - [Changelog](https://github.com/rajatjindal/krew-release-bot/blob/main/.goreleaser.yml) - [Commits](rajatjindal/krew-release-bot@v0.0.46...v0.0.47) --- updated-dependencies: - dependency-name: rajatjindal/krew-release-bot dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * feat(dependenciesdistributor): introduced flag for dependencies-distributor Signed-off-by: chang.qiangqiang <chang.qiangqiang@immomo.com> * Bump Kubernetes dependencies to v1.31.2 Bump controller-runtime to v0.19.1 Signed-off-by: RainbowMango <qdurenhongcai@gmail.com> * Adopt controller-runtime braking change: TypedReconciler Reference PR2799 Adopt Kubernetes#125483 introduced ReadinessCheck Adopt Kubernetes breaking change: EffectiveVersion Reference PR: 122891 Signed-off-by: RainbowMango <qdurenhongcai@gmail.com> * pkg/search: unit test controller In this commit, we unit test karmada search controller on creating new controller and handling the following events watched by the shared informer: `addCluster`, `updateCluster`, `deleteCluster`, `addResourceRegistry`, `updateResourceRegistry`, and `deleteResourceRegistry` making sure those handled and cached correctly to the indexer. Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> * image-scanning: fix ratelimiting error when downloading vulnerability db from ghcr.io Signed-off-by: zhzhuang-zju <m17799853869@163.com> * Introduce PurgeMode to GracefulEvictionTask in ResourceBinding Signed-off-by: mszacillo <mszacillo@bloomberg.net> * Added unit tests for safe lua lifted libraries Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> * Bump Golang version to v1.22.9 Signed-off-by: RainbowMango <qdurenhongcai@gmail.com> * update GracefulEvictCluster() to set PurgeMode during eviction process Signed-off-by: changzhen <changzhen5@huawei.com> * Added tests for controllers/deploymentreplicassyncer Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added tests for controllers/deploymentreplicassyncer Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added tests for controllers/deploymentreplicassyncer Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added tests for controllers/deploymentreplicassyncer Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added tests for controllers/deploymentreplicassyncer Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added tests for controllers/deploymentreplicassyncer Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> * Added unit tests for general estimator package Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> * Added unit tests for status and cronfederatedhpa helper utilities Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added unit tests for status and cronfederatedhpa helper utilities Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added unit tests for status and cronfederatedhpa helper utilities Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added unit tests for status and cronfederatedhpa helper utilities Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> * Update application failover purge mode comments Signed-off-by: RainbowMango <qdurenhongcai@gmail.com> * Propose support for custom CA cert Signed-off-by: Joe Nathan Abellard <contact@jabellard.com> * Added unit tests for pkg/resourceinterpreter/default/native/reflectstatus.go Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> * refactor operator module validation logic for Karmada objects Signed-off-by: chaosi-zju <chaosi@zju.edu.cn> * build(deps): bump codecov/codecov-action from 4 to 5 Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v4...v5) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix operatore ci fail for invalid crdtarball Signed-off-by: zhzhuang-zju <m17799853869@163.com> * Add index for Work to speed up the processing of resource binding related controllers Signed-off-by: zach593 <zach_li@outlook.com> * Standardize the naming conventions for karmada system roles Signed-off-by: zhzhuang-zju <m17799853869@163.com> * Fix: karmada-metrics-adapter use the correct certificate when deployed via karmadactl Signed-off-by: Khalil Santana <khalil@ksantana.net> * Update group_clusters.go Signed-off-by: LavredisG <lavredisgoume@gmail.com> * Add support for custom API Server CA certificate Signed-off-by: Joe Nathan Abellard <contact@jabellard.com> * Fix lint errors Signed-off-by: Joe Nathan Abellard <contact@jabellard.com> * Added unit tests for the CustomizedInterpreter Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added unit tests for the CustomizedInterpreter Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> * minimize the RBAC permissions for the pull mode cluster Signed-off-by: zhzhuang-zju <m17799853869@163.com> * Address comments Signed-off-by: Joe Nathan Abellard <contact@jabellard.com> * Address comments Signed-off-by: Joe Nathan Abellard <contact@jabellard.com> * AsyncWorker adopt typed rate limiter Signed-off-by: RainbowMango <qdurenhongcai@gmail.com> * update karmada-apiserver and kube-controller-manager to v1.31.3 by default. Signed-off-by: chaosi-zju <chaosi@zju.edu.cn> * publish releasenote for release v1.9.9, v1.10.7, v1.11.3 Signed-off-by: zhzhuang-zju <m17799853869@163.com> * etcd: update version to 3.5.16-0 Signed-off-by: chaosi-zju <chaosi@zju.edu.cn> * wait for search multiClusterCache ReadinessCheck to be ready Signed-off-by: changzhen <changzhen5@huawei.com> * add ServerRunOptions in the search options Signed-off-by: changzhen <changzhen5@huawei.com> * pkg/karmadactl: unit test cordon In this commit, we unit test cordon on karmadactl client making sure the cordon/uncordon working as expected on a given cluster. Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> * Update cluster/types.go and cluster/v1alpha1/types.go Signed-off-by: LavredisG <lavredisgoume@gmail.com> * fix flake test of TestUpdateClusterEventHandler Signed-off-by: changzhen <changzhen5@huawei.com> * add group/values for resources Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> Signed-off-by: changzhen <changzhen5@huawei.com> * add agentcsrapproving controller to auto approve agent csr Signed-off-by: zhzhuang-zju <m17799853869@163.com> * feat(dependenciesdistributor): set dependenciesdistributor rb maxconcurrentreconciles same as concurrent-resourcebinding-syncs Signed-off-by: chang.qiangqiang <chang.qiangqiang@immomo.com> * Added unit tests for custom resource interpreter's configuration manager Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> * pkg/karmadactl: unit test exec In this commit, we unit test exec on validating the execute options on control plane and member clusters. Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> * pkg/karmadactl: unit test logs In this commit, we unit test logs on completion for pods/containers, selectors, and member factory builder. Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> * build(deps): bump aquasecurity/trivy-action from 0.28.0 to 0.29.0 Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.28.0 to 0.29.0. - [Release notes](https://github.com/aquasecurity/trivy-action/releases) - [Commits](aquasecurity/trivy-action@0.28.0...0.29.0) --- updated-dependencies: - dependency-name: aquasecurity/trivy-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * replace csrapproving by agentcsrapproving Signed-off-by: zhzhuang-zju <m17799853869@163.com> * update taint-manager to config eviction task with purgeMode Signed-off-by: changzhen <changzhen5@huawei.com> * let rb status controller onCreate predicate return true Signed-off-by: zach593 <zach_li@outlook.com> * Enable deprecation check which was disabled for version upgrade Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com> * Redact sensitive information from the karmadactl init command output Signed-off-by: zhzhuang-zju <m17799853869@163.com> * Added unit tests for interpretation context handling Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added unit tests for interpretation context handling Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added unit tests for interpretation context handling Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> * Add StatePreservation filed to PropagationPolicy API Signed-off-by: RainbowMango <qdurenhongcai@gmail.com> * Failover controllers now build eviction tasks for purgemode immediately Signed-off-by: mszacillo <mszacillo@bloomberg.net> * Add docs for creating and inspecting Karmada isntance with the operator Signed-off-by: Joe Nathan Abellard <contact@jabellard.com> * karmada-operator: add CRDs archive verification to enhance file system robustness Signed-off-by: zhzhuang-zju <m17799853869@163.com> * karmadactl init: add CRDs archive verification to enhance file system robustness Signed-off-by: zhzhuang-zju <m17799853869@163.com> * pkg/search/controllers_test: address flake test Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> * fix code typo errors Signed-off-by: chaosi-zju <chaosi@zju.edu.cn> * build PreservedLabelState when triggering evition Signed-off-by: changzhen <changzhen5@huawei.com> * Cleanup works from cluster if purgemode is immediately Signed-off-by: mszacillo <mszacillo@bloomberg.net> * pkg/karmadactl: unit test join In this commit, we unit test the process of joining a cluster to the Karmada control plane. The tests validate the arguments passed to the join cluster operation and ensure the creation of the new cluster runtime object. Additionally, we verify that the necessary access secrets for the new cluster in push mode are correctly generated in the Karmada control plane. Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> * add ut for parseJSONValue function to cover the JSONPath main parse ability Signed-off-by: changzhen <changzhen5@huawei.com> * inject preservedLabelState to the failover to clusters Signed-off-by: changzhen <changzhen5@huawei.com> * Add stateful application failover status injection feature gate Signed-off-by: RainbowMango <qdurenhongcai@gmail.com> * Disable cluster failover by default which should be explicitly enabled by administrators after a fully evaluation. Signed-off-by: RainbowMango <qdurenhongcai@gmail.com> * publish release note for v1.12.0 Signed-off-by: zhzhuang-zju <m17799853869@163.com> * pkg/karmadactl: unit test describe In this commit, we unit test describe command on karmadactl by mainly validating the describe options. Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> * Bump kind dependencis from v0.24.0 to v0.25.0 Signed-off-by: RainbowMango <qdurenhongcai@gmail.com> * Added unit tests for the replica package in the estimator server Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added unit tests for the replica package in the estimator server Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> * refactor: introduce DefaultHistoryLimit constant for CronFederatedHPA Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> * pkg/karmadactl: unit test promote In this commit, we unti test promoting a namespace-scoped or cluster-scoped resource in a legacy clsuter and validating the promote options on karmadactl command. Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> * add shell completion code for fish shell Signed-off-by: tiansuo114 <zhaoyi_114@outlook.com> 11 Signed-off-by: tiansuo114 <zhaoyi_114@outlook.com> * Bump sigs.k8s.io/metrics-server to a pseudo version which use Kuberentes v1.31 but don't rely on Go 1.23 Signed-off-by: RainbowMango <qdurenhongcai@gmail.com> * pkg/karmadactl: unit test unjoin In this commit, we unit test unjoining cluster by validating the unjoin cluster operation on arguments passed and by verifying the deletion of all resources on the unjoining cluster in case of cluster kubeconfig passed. Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> * pkg/karmadactl/cmdinit: unit test clusterinfo In this commit, we unit test clusterinfo on creating bootstrap configmap and creating cluster info RBAC rules. Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> * update kubernetes v1.31.3 Signed-off-by: dongjiang <dongjiang1989@126.com> * cmd+hack+operator+pkg: unify addons constants In this commit we unify the usage of addon names i.e `karmada-descheduler`, `karmada-scheduler-estimator`, `karmada-search`, and `karmada-metrics-adapter` across the codebase. Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> Co-authored-by: Hongcai Ren <renhongcai@huawei.com> * install karmada with latest tag images in ci chart-testing Signed-off-by: chaosi-zju <chaosi@zju.edu.cn> * Added unit tests for the scheduler's node tree functionality Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added unit tests for the scheduler's node tree functionality Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added unit tests for the scheduler's node tree functionality Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> * Added unit tests for resourceinterpreter webhook configmanager Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added unit tests for resourceinterpreter webhook configmanager Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Added unit tests for resourceinterpreter webhook configmanager Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> * simplify local-up-karmada.sh based on setup-dev-base.sh Signed-off-by: chaosi-zju <chaosi@zju.edu.cn> * Bump upgrade helm chart index to v1.12.0 Signed-off-by: chaosi-zju <chaosi@zju.edu.cn> * build(deps): bump alpine from 3.20.3 to 3.21.0 in /cluster/images Bumps alpine from 3.20.3 to 3.21.0. --- updated-dependencies: - dependency-name: alpine dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Stop maintaining version 1.9 and maintain version 1.12 Signed-off-by: zhzhuang-zju <m17799853869@163.com> * prevent some jobs running from forked repository Signed-off-by: zhzhuang-zju <m17799853869@163.com> * fix flake test of KarmadactlTopPod Signed-off-by: zhzhuang-zju <m17799853869@163.com> * pkg/karmadactl/util: unit test apiclient In this commit, we unit test apiclient on creating restconfig. Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> * Fix the problem of ResourceBinding remaining when the workload is deleted in the dependencies distribution scenario Signed-off-by: changzhen <changzhen5@huawei.com> --------- Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: chang.qiangqiang <chang.qiangqiang@immomo.com> Signed-off-by: RainbowMango <qdurenhongcai@gmail.com> Signed-off-by: zhzhuang-zju <m17799853869@163.com> Signed-off-by: mszacillo <mszacillo@bloomberg.net> Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com> Signed-off-by: changzhen <changzhen5@huawei.com> Signed-off-by: Joe Nathan Abellard <contact@jabellard.com> Signed-off-by: chaosi-zju <chaosi@zju.edu.cn> Signed-off-by: zach593 <zach_li@outlook.com> Signed-off-by: Khalil Santana <khalil@ksantana.net> Signed-off-by: LavredisG <lavredisgoume@gmail.com> Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com> Signed-off-by: tiansuo114 <zhaoyi_114@outlook.com> Signed-off-by: dongjiang <dongjiang1989@126.com> Co-authored-by: Mohamed Awnallah <mohamedmohey2352@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: chang.qiangqiang <chang.qiangqiang@immomo.com> Co-authored-by: RainbowMango <qdurenhongcai@gmail.com> Co-authored-by: zhzhuang-zju <m17799853869@163.com> Co-authored-by: karmada-bot <76678816+karmada-bot@users.noreply.github.com> Co-authored-by: mszacillo <mszacillo@bloomberg.net> Co-authored-by: Anuj Agrawal <anujagrawal380@gmail.com> Co-authored-by: changzhen <changzhen5@huawei.com> Co-authored-by: Joe Nathan Abellard <contact@jabellard.com> Co-authored-by: chaosi-zju <chaosi@zju.edu.cn> Co-authored-by: zach593 <zach_li@outlook.com> Co-authored-by: Khalil Santana <khalil@ksantana.net> Co-authored-by: LavredisG <lavredisgoume@gmail.com> Co-authored-by: wei-chenglai <qazwsx0939059006@gmail.com> Co-authored-by: tiansuo114 <zhaoyi_114@outlook.com> Co-authored-by: dongjiang <dongjiang1989@126.com> Co-authored-by: Hongcai Ren <renhongcai@huawei.com>
Keywords which can automatically close issues and at(@) or hashtag(#) mentions are not allowed in commit messages. The list of commits with invalid commit messages:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@chaosi-zju I've tried to squash the commits and sort of messed it up. Those squashed commits aren't showing up in the branch. Can we do "squash and merge" while merging this PR? |
can you try one more time by following command: git remote add upstream https://github.com/karmada-io/karmada.git
git fetch upstream
git rebase upstream/master then if you successfully rebased, you can directly push tou commit, but you may also encounter some rebase conflict, in that case you should manually resolve the conflict and execute |
What type of PR is this?
/kind bug
What this PR does / why we need it:
As discussed in the community meet on 2024-07-09 , added the fix to evaluate the cluster affinities freshly when scheduling is triggered via WorkloadRebalancer.
Which issue(s) this PR fixes:
Fixes #5070
Progress
Special notes for your reviewer:
Raising this PR to get early feedback on the implementation as it is still work in progress and tested manually by building the deploying the scheduler. There may be unit test failures which I will fix so please don't merge the PR until that's done.
Does this PR introduce a user-facing change?:
Yes. [Rest of the section TBA]