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
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
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
karmada-bot
835a446a74
Merge pull request #5255 from chaosi-zju/e2e
...
fix unexpected interference between different e2e use cases
2024-07-27 11:50:19 +08:00
zhzhuang-zju
f24663b1e4
optimization: add retry when clean up mark from resourcetemplate failed
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-07-27 11:10:52 +08:00
chaosi-zju
459864d3b1
fix unexpected interference between different e2e use cases
...
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-07-27 09:30:47 +08:00
karmada-bot
b5c4c8dc09
Merge pull request #5252 from a7i/amir/fix-crb-webhook-scope
...
fix: `ClusterResourceBinding` scope in `MutatingWebhookConfiguration`
2024-07-27 09:24:18 +08:00
Amir Alavi
b1ce2f1cdc
e2e: clusterresourcebinding permanent-id label
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-07-26 19:05:32 -04:00
karmada-bot
c38f169916
Merge pull request #5247 from chaosi-zju/metrics
...
add metrics for recreate/update resource event when sync work status
2024-07-26 15:49:19 +08:00
karmada-bot
1430ecbd2e
Merge pull request #5243 from grosser/grosser/exelabe
...
add karmada.io/system label to created execution namespaces
2024-07-26 12:03:17 +08:00
chaosi-zju
32850c405c
add metrics for recreate/update resource event when sync work status
...
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-07-26 11:17:48 +08:00
karmada-bot
c7c3de3a68
Merge pull request #5253 from a7i/kustomize-fix-scalar-node
...
fix: kustomize syntax for webhook caBundle
2024-07-26 10:55:17 +08:00
Amir Alavi
994b477599
fix: kustomize syntax for webhook caBundle
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-07-25 21:42:22 -04:00
karmada-bot
335cc90bc0
Merge pull request #5246 from grosser/grosser/relabel
...
relabel webhooks to make it obvious they belong to karmada
2024-07-26 09:33:17 +08:00
Amir Alavi
2530ab9b88
fix: `ClusterResourceBinding` scope in `MutatingWebhookConfiguration`
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-07-25 20:58:22 -04:00
Michael Grosser
13f0f6e6d8
add karmada.io/system label to created execution namespaces
...
Signed-off-by: Michael Grosser <michael@grosser.it>
2024-07-25 07:48:49 -07:00
karmada-bot
4ba18c12ed
Merge pull request #5194 from yike21/generation-helmchart
...
Align federated helmcharts.source.toolkit.fluxcd.io observedGeneration semantics with its native
2024-07-25 16:11:17 +08:00
karmada-bot
1774bd771e
Merge pull request #5197 from yike21/generation-ocirepository
...
Align federated ocirepositories.source.toolkit.fluxcd.io observedGeneration semantics with its native
2024-07-25 16:10:16 +08:00
karmada-bot
08dceefa40
Merge pull request #5193 from yike21/generation-bucket
...
Align federated buckets.source.toolkit.fluxcd.io observedGeneration semantics with its native
2024-07-25 16:08:16 +08:00
Michael Grosser
afc1e5fc89
relabel webhooks to make it obvious they belong to karmada
...
Signed-off-by: Michael Grosser <michael@grosser.it>
2024-07-24 19:45:52 -07:00
karmada-bot
bc1c96ee05
Merge pull request #5175 from tiansuo114/master
...
improve karmadactl unit test: check the cert file exist
2024-07-24 17:45:15 +08:00
karmada-bot
c5d182b908
Merge pull request #5239 from mohamedawnallah/unifyAccessToClusterMembersinE2E
...
test: unify access to cluster members utilizing `framework.ClusterMembers()` as input parameter
2024-07-24 10:20:16 +08:00
karmada-bot
39e8587649
Merge pull request #4575 from zhzhuang-zju/cpp
...
complete the e2e test case scenarios for clusterpp
2024-07-24 10:08:15 +08:00
Mohamed Awnallah
f71bc13963
test: unify access to cluster members
...
In this commit, we unify access to cluster members
in `test/helper/NewFederatedResourceQuota()` by passing
`clusterNames` as an input parameter. This commit is also
a follow-up of this PR #5226 .
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-07-23 17:46:54 +00:00