Commit Graph

5758 Commits

Author SHA1 Message Date
karmada-bot ec0521a754
Merge pull request #5216 from yanfeng1992/fix-apienables
skip the filter if the cluster is already in the list of scheduling result even if the API is missed
2024-09-18 20:28:04 +08:00
karmada-bot 96622c6be4
Merge pull request #5548 from whitewindmills/deprecate-param
Remove deprecated `--bind-address` and `--secure-port` from `karmada-agent`
2024-09-18 15:16:03 +08:00
huangyanfeng 4c416cec6f Skip cluster removal if already scheduled and API enablements are incomplete to prevent accidental removal.
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2024-09-18 14:23:00 +08:00
karmada-bot 4c8bcd4af1
Merge pull request #5540 from zhzhuang-zju/releasenote1.11-1
publish release note for v1.11.1, v1.10.5, v1.9.7
2024-09-14 17:26:00 +08:00
zhzhuang-zju 7b48ea65c2 publish release note for v1.11.1, v1.10.5, v1,9.7
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-09-14 16:32:25 +08:00
karmada-bot ba360c9aa7
Merge pull request #5546 from jabellard/controller_manager_deployment
Fix mTLS Configuration for Karmada Scheduler & Descheduler Components
2024-09-14 10:55:59 +08:00
whitewindmills f33bc3820f Remove BindAddress & SecurePort of karmada-agent
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-09-14 10:44:27 +08:00
karmada-bot e76ce6355b
Merge pull request #5400 from whitewindmills/apienablement-condition
add new cluster condition: CompleteAPIEnablements
2024-09-14 09:39:00 +08:00
Joe Nathan Abellard 24d9e12e5c Set Karmada Cert Secret Used For Configurating mTLS for Scheduler & Descheduler Components
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-09-13 16:14:31 -04:00
whitewindmills 3307a52627 add new cluster condition: IncompleteAPIEnablements
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-09-13 17:40:24 +08:00
karmada-bot 2e60a6e8a5
Merge pull request #5494 from mohamedawnallah/unitTestClusterPropagationPolicy
pkg/webhook: unit test cluster propagation policy
2024-09-13 16:36:59 +08:00
karmada-bot c3d582ba31
Merge pull request #5537 from mohamedawnallah/refactorPropagationPolicyTest
pkg/webhook: refactor Propagation Policy test
2024-09-13 16:10:59 +08:00
karmada-bot bf83dfe87c
Merge pull request #5535 from anujagrawal699/addedTests-controllers/federatedresourcequota
Added tests for federatedresourcequota controller
2024-09-13 15:14:59 +08:00
Mohamed Awnallah 87958641ae pkg/webhook: test ClusterPropagationPolicy
In this commit, we introduce unit tests for both the `ValidatingAdmission`
and `MutatingAdmission` webhooks for the `ClusterPropagationPolicy` resource.

The tests include:

- Validation webhook tests:
  - Tests how the webhook responds when decoding the request object fails.
  - Ensures updates to the `SchedulerName` field are denied, as it should remain immutable.
  - Validates that changes to the `ClusterPropagationPolicyPermanentIDLabel` label and its absence in creation requests are correctly handled.
  - Confirms that valid `ClusterPropagationPolicy` objects are allowed through without errors.

- Mutation webhook tests:
  - Handles decode errors and denies admission when decoding fails.
  - Provides full coverage of cluster policy mutation with default values and patch application.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-13 10:08:43 +03:00
Mohamed Awnallah 368b4b171d pkg/webhook: refactor propagation policy
In this commit, we refactor propagation policy names and check
on number of patches the mutation happens.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-13 09:56:50 +03:00
Anuj Agrawal 6bbbf9d8ae Added tests for federatedresourcequota controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for federatedresourcequota controller

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-09-13 09:58:36 +05:30
karmada-bot 4dfff39d56
Merge pull request #5509 from jabellard/volumes_bindings_api_server
Support to Specify Extra Volumes and Volume Mounts for Karmada API Server Component
2024-09-12 20:34:58 +08:00
karmada-bot 071fb3d3b0
Merge pull request #5276 from jabellard/component_volumes
Proposal: Support to Specify Extra Volumes and Volume Mounts for Karmada Control Plane Components
2024-09-12 20:31:59 +08:00
Joe Nathan Abellard c45b817e74 Initial structure
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Initial structure

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>
2024-09-12 07:41:13 -04:00
Joe Nathan Abellard 2dfd11dd7f Initial structure
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>

Update api

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-09-12 07:36:58 -04:00
karmada-bot dc369864c6
Merge pull request #5534 from iawia002/owner
Remove me from resourceinterpreter OWNERS
2024-09-12 17:31:59 +08:00
Xinzhao Xu 19c0b4cbfa Remove me from resourceinterpreter OWNERS
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2024-09-12 16:38:37 +08:00
karmada-bot 02e5e922e9
Merge pull request #5517 from mohamedawnallah/unitTestMultiClusterService
pkg/webhook: unit test Multi-Cluster Service
2024-09-12 15:58:59 +08:00
karmada-bot df76fd66fb
Merge pull request #5532 from mohamedawnallah/unitTestWorkWebhook
pkg/webhook: unit test Work
2024-09-12 15:57:58 +08:00
Mohamed Awnallah bd847422af pkg/webhook: test Work
In this commit, we introduce unit tests for the `MutatingAdmission`
webhook specifically for the `Work` resource. The mutation webhook
tests include the following:

- Handles decode errors and denies admission when decoding fails.
- Provides full coverage of policy mutation, including setting default
  and validating no unnecessary patches.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-12 07:28:03 +03:00
Mohamed Awnallah d5c9a9d803 pkg/webhook: test Multi-Cluster Service
In this commit, we introduce unit tests for both the `ValidationAdmission`
and `MutatingAdmission` webooks specifically for the `MultiClusterService` resource.

- Validation webhook tests:
  - Tests the behavior when decoding the request object fails, verifying
    that admission is denied with an appropriate error message.
  - Validates that the webhook denies admission when encountering invalid
    values in the `MultiClusterService` spec, ensuring error messaging.
  - Confirms that valid `MultiClusterService` objects are admitted without errors.

- Mutation webhook tests:
  - Handles decode errors and denies admission when decoding fails.
  - Provides full coverage of `MultiClusterService` object mutation,
    including setting default namespaces and validating no unnecessary patches.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-12 07:27:34 +03:00
karmada-bot 671372acb2
Merge pull request #5528 from anujagrawal699/addedTests-controllers/federatedhpa
Added tests for federatedhpa controller
2024-09-12 12:14:58 +08:00
karmada-bot 927dc33d58
Merge pull request #5521 from mohamedawnallah/logMutatingWebhookHandlers
pkg/webhook: log mutating handlers in `OverridePolicy`, `ClusterPropagationPolicy`, and `MultiClusterService`
2024-09-12 10:47:58 +08:00
karmada-bot 2ce29eac28
Merge pull request #5260 from jabellard/extern_etcd_secret_ref
Proposal: Enhance `EcternalEtcd` Configuration to Support Retrieving etcd Client Credentials from a Kubernetes Secret
2024-09-12 10:06:58 +08:00
karmada-bot 01df299c8b
Merge pull request #5505 from RainbowMango/pr_nominate_chart_owners
Nominates Amir and Chaosi as the owners of helm chart
2024-09-12 10:03:59 +08:00
karmada-bot 76d265f150
Merge pull request #5523 from chaosi-zju/karmadactl-bug
Fix `karmadactl addon` failed to install karmada-scheduler-estimator due to unknown flag
2024-09-12 09:46:58 +08:00
karmada-bot 87c208ab33
Merge pull request #5529 from yelshall/yelshall/bump
Bump golang version to 1.22.7 to address security warnings
2024-09-12 09:18:58 +08:00
karmada-bot 8968400611
Merge pull request #5525 from XiShanYongYe-Chang/fix-occasional-suspend-case-failed
Fix occasional suspension case failed
2024-09-12 09:15:59 +08:00
yelshall 9935ae74e0 bump go version to 1.22.7
Signed-off-by: yelshall <youssuf.elshall@zendesk.com>
2024-09-11 11:11:26 -07:00
Anuj Agrawal 337f787963 Added tests for federatedhpa controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for federatedhpa controller

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-09-11 19:37:49 +05:30
changzhen 998c547414 fix occasional suspension case failed
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-09-11 17:28:14 +08:00
chaosi-zju e7db9d74b0 remove redundant launch arguments when install estimator by karmadactl
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-09-11 16:59:28 +08:00
Mohamed Awnallah df270fab91 pkg/webhook: log mutating webhook handlers
In this commit, we log the mutating handlers for `OverridePolicy`,
`ClusterPropagationPolicy`, and `MultiClusterService`. Specifically, it logs
information about the mutation of these resources, including the namespace,
name, and the operation type from the admission request.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-11 07:53:16 +03:00
karmada-bot 4ac95b95a1
Merge pull request #5508 from mohamedawnallah/unifyUsingPolicyV1Alpha1Operators
pkg+test: unify the usage of policyv1alpha1 operators
2024-09-11 12:05:57 +08:00
karmada-bot 8cd47397c3
Merge pull request #5514 from liangyuanpeng/ci_update
chore: update ci for kubernetes 1.31 and schedule for release-1.11
2024-09-11 11:01:57 +08:00
karmada-bot f1926bf55b
Merge pull request #5515 from liangyuanpeng/karmada_apiserver_1.30
Update karmada-apiserve and kube-controller-manager to v1.30.4 by default.
2024-09-11 10:56:57 +08:00
Lan Liang 0395765962 Update karmada-apiserve and kube-controller-manager to v1.30.4 by default.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-09-10 13:59:13 +00:00
Lan Liang 6c8e228cff chore: update ci for kubernetes 1.31 and schedule for release-1.11
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-09-10 13:54:18 +00:00
karmada-bot 07e297681c
Merge pull request #5478 from jabellard/estimator_service_namespace
Add the Ability to Specify the Namespace Used for Discovering Scheduler Estimator Services
2024-09-10 19:41:56 +08:00
karmada-bot ca1b2ce3c7
Merge pull request #5492 from mohamedawnallah/unitTestPropagationPolicy
pkg/webhook: unit test propagation policy
2024-09-10 14:13:56 +08:00
karmada-bot 2577b5f63e
Merge pull request #5499 from mohamedawnallah/unitTestResourceDeletionProtectionWebhook
pkg/webhook: unit test resource deletion protection
2024-09-10 11:44:56 +08:00
Mohamed Awnallah e2a3f5942c pkg/webhook: test PropagationPolicy
In this commit, we introduce unit tests for both the `ValidatingAdmission`
and `MutatingAdmission` webhooks for the `PropagationPolicy` resource.

The tests include:

- Validation webhook tests:
  - Tests how the webhook responds when decoding the request object fails.
  - Ensures that updates to the `SchedulerName` field are denied, as it should remain immutable.
  - Validates that changes to the `PropagationPolicyPermanentIDLabel` label and its absence in creation requests are correctly handled.
  - Confirms that valid `PropagationPolicy` objects are allowed through without errors.

- Mutation webhook tests:
  - Handles decode errors and denies admission when decoding fails.
  - Provides full coverage of policy mutation with default values and patch application.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-10 06:39:20 +03:00
karmada-bot aaae246280
Merge pull request #5487 from zhzhuang-zju/namespace
fix: command create cannot specify the namespace
2024-09-10 11:32:56 +08:00
karmada-bot 4668cf0808
Merge pull request #5321 from tiansuo114/node
Support multiple label selection ability in EtcdNodeSelectorLabels
2024-09-10 11:07:57 +08:00
zhzhuang-zju 4a2dc3d935 fix: command create cannot specify the namespace
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-09-10 10:23:09 +08:00