mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-12-03 15:22:26 -08:00
Don't bother setting taints and tolerations during the integration tests, we assert toleration support at the manifest level
This commit is contained in:
1 parent
75a430c5ad
commit
495cddff5e
11 files changed
-165
No files matched your search
@@ -11,12 +11,6 @@ elementWeb:
|
||||
|
||||
replicas: 1
|
||||
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
|
||||
additional:
|
||||
{
|
||||
"default_server_config": {
|
||||
|
||||
@@ -36,32 +36,11 @@ synapse:
|
||||
host: synapse.{{ $.Values.serverName }}
|
||||
tlsSecret: "{{ $.Release.Name }}-synapse-web-tls"
|
||||
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
|
||||
workers:
|
||||
sliding-sync:
|
||||
enabled: true
|
||||
media-repository:
|
||||
enabled: true
|
||||
|
||||
haproxy:
|
||||
replicas: 1
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
|
||||
redis:
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
|
||||
elementWeb:
|
||||
enabled: false
|
||||
@@ -8,31 +8,3 @@
|
||||
|
||||
ingress:
|
||||
tlsSecret: ess-selfsigned
|
||||
|
||||
elementWeb:
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
|
||||
synapse:
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
|
||||
haproxy:
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
|
||||
redis:
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
@@ -26,9 +26,6 @@ else
|
||||
kind create cluster --name "$kind_cluster_name" --config "$root_folder/tests/integration/fixtures/files/clusters/kind.yml"
|
||||
fi
|
||||
|
||||
kubectl -n kube-system patch deployment/coredns --patch-file "$root_folder/tests/integration/fixtures/files/patches/tolerations.yml"
|
||||
kubectl -n local-path-storage patch deployment/local-path-provisioner --patch-file "$root_folder/tests/integration/fixtures/files/patches/tolerations.yml"
|
||||
|
||||
network=$(docker inspect $kind_cluster_name-control-plane | jq '.[0].NetworkSettings.Networks | keys | .[0]' -r)
|
||||
docker run \
|
||||
-d --restart=always -p "127.0.0.1:5000:5000" --network "$network" --network-alias "registry" --name "${kind_cluster_name}-registry" \
|
||||
|
||||
@@ -62,40 +62,8 @@ async def cluster():
|
||||
kind_config = Path("files/clusters/kind-ci.yml") if os.environ.get("CI") else Path("files/clusters/kind.yml")
|
||||
this_cluster.create(ClusterOptions(cluster_config=fixtures_folder / kind_config))
|
||||
|
||||
await asyncio.to_thread(
|
||||
this_cluster.kubectl, ["taint", "nodes", "ess-helm-control-plane", "context=pytest:NoSchedule", "--overwrite"]
|
||||
)
|
||||
|
||||
await asyncio.to_thread(
|
||||
this_cluster.kubectl,
|
||||
[
|
||||
"patch",
|
||||
"-n",
|
||||
"kube-system",
|
||||
"deployment/coredns",
|
||||
"--patch-file",
|
||||
(fixtures_folder / Path("files/patches/tolerations.yml")).as_posix(),
|
||||
],
|
||||
)
|
||||
|
||||
await asyncio.to_thread(
|
||||
this_cluster.kubectl,
|
||||
[
|
||||
"patch",
|
||||
"-n",
|
||||
"local-path-storage",
|
||||
"deployment/local-path-provisioner",
|
||||
"--patch-file",
|
||||
(fixtures_folder / Path("files/patches/tolerations.yml")).as_posix(),
|
||||
],
|
||||
)
|
||||
|
||||
yield this_cluster
|
||||
|
||||
await asyncio.to_thread(
|
||||
this_cluster.kubectl, ["taint", "nodes", "ess-helm-control-plane", "context=pytest:NoSchedule-"]
|
||||
)
|
||||
|
||||
this_cluster.delete()
|
||||
|
||||
|
||||
|
||||
@@ -4,30 +4,3 @@
|
||||
|
||||
crds:
|
||||
enabled: true
|
||||
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
|
||||
webhook:
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
|
||||
cainjector:
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
|
||||
startupapicheck:
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
@@ -16,17 +16,3 @@ controller:
|
||||
|
||||
service:
|
||||
enabled: false
|
||||
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
|
||||
admissionWebhooks:
|
||||
patch:
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
@@ -4,9 +4,3 @@
|
||||
|
||||
args:
|
||||
- --kubelet-insecure-tls
|
||||
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
@@ -14,9 +14,3 @@ primary:
|
||||
|
||||
initdb:
|
||||
args: --locale=C --encoding=UTF8
|
||||
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
@@ -1,12 +0,0 @@
|
||||
# Copyright 2024 New Vector Ltd
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
tolerations:
|
||||
- key: context
|
||||
operator: Equal
|
||||
value: pytest
|
||||
effect: NoSchedule
|
||||
@@ -57,16 +57,6 @@ class PostgresServer:
|
||||
},
|
||||
},
|
||||
"primary": {
|
||||
"extraPodSpec": {
|
||||
"tolerations": [
|
||||
{
|
||||
"key": "context",
|
||||
"operator": "Equal",
|
||||
"value": "pytest",
|
||||
"effect": "NoSchedule",
|
||||
}
|
||||
]
|
||||
},
|
||||
"initdb": {"args": "--locale=C --encoding=UTF8"},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user