diff --git a/charts/matrix-stack/ci/pytest-element-web-values.yaml b/charts/matrix-stack/ci/pytest-element-web-values.yaml index dd254e93..49db94d0 100644 --- a/charts/matrix-stack/ci/pytest-element-web-values.yaml +++ b/charts/matrix-stack/ci/pytest-element-web-values.yaml @@ -11,12 +11,6 @@ elementWeb: replicas: 1 - tolerations: - - key: context - operator: Equal - value: pytest - effect: NoSchedule - additional: { "default_server_config": { diff --git a/charts/matrix-stack/ci/pytest-synapse-values.yaml b/charts/matrix-stack/ci/pytest-synapse-values.yaml index 8940887b..031b0561 100644 --- a/charts/matrix-stack/ci/pytest-synapse-values.yaml +++ b/charts/matrix-stack/ci/pytest-synapse-values.yaml @@ -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 diff --git a/charts/matrix-stack/ci/test-cluster-mixin.yaml b/charts/matrix-stack/ci/test-cluster-mixin.yaml index 0f4665ef..bae2b198 100644 --- a/charts/matrix-stack/ci/test-cluster-mixin.yaml +++ b/charts/matrix-stack/ci/test-cluster-mixin.yaml @@ -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 diff --git a/scripts/setup_test_cluster.sh b/scripts/setup_test_cluster.sh index a46fec54..e029d1ce 100755 --- a/scripts/setup_test_cluster.sh +++ b/scripts/setup_test_cluster.sh @@ -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" \ diff --git a/tests/integration/fixtures/cluster.py b/tests/integration/fixtures/cluster.py index e6c0a6d1..cb9a8bba 100644 --- a/tests/integration/fixtures/cluster.py +++ b/tests/integration/fixtures/cluster.py @@ -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() diff --git a/tests/integration/fixtures/files/charts/cert-manager.yml b/tests/integration/fixtures/files/charts/cert-manager.yml index d1d7b7bc..8ae582f0 100644 --- a/tests/integration/fixtures/files/charts/cert-manager.yml +++ b/tests/integration/fixtures/files/charts/cert-manager.yml @@ -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 diff --git a/tests/integration/fixtures/files/charts/ingress-nginx.yml b/tests/integration/fixtures/files/charts/ingress-nginx.yml index 94cce866..ba945c36 100644 --- a/tests/integration/fixtures/files/charts/ingress-nginx.yml +++ b/tests/integration/fixtures/files/charts/ingress-nginx.yml @@ -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 diff --git a/tests/integration/fixtures/files/charts/metrics-server.yml b/tests/integration/fixtures/files/charts/metrics-server.yml index edf2de38..c322968d 100644 --- a/tests/integration/fixtures/files/charts/metrics-server.yml +++ b/tests/integration/fixtures/files/charts/metrics-server.yml @@ -4,9 +4,3 @@ args: - --kubelet-insecure-tls - -tolerations: -- key: context - operator: Equal - value: pytest - effect: NoSchedule diff --git a/tests/integration/fixtures/files/charts/postgres.yml b/tests/integration/fixtures/files/charts/postgres.yml index c73529bf..3692f16c 100644 --- a/tests/integration/fixtures/files/charts/postgres.yml +++ b/tests/integration/fixtures/files/charts/postgres.yml @@ -14,9 +14,3 @@ primary: initdb: args: --locale=C --encoding=UTF8 - - tolerations: - - key: context - operator: Equal - value: pytest - effect: NoSchedule diff --git a/tests/integration/fixtures/files/patches/tolerations.yml b/tests/integration/fixtures/files/patches/tolerations.yml deleted file mode 100644 index c300a5dc..00000000 --- a/tests/integration/fixtures/files/patches/tolerations.yml +++ /dev/null @@ -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 diff --git a/tests/integration/services/postgresql.py b/tests/integration/services/postgresql.py index 55144ac6..259ec42c 100644 --- a/tests/integration/services/postgresql.py +++ b/tests/integration/services/postgresql.py @@ -57,16 +57,6 @@ class PostgresServer: }, }, "primary": { - "extraPodSpec": { - "tolerations": [ - { - "key": "context", - "operator": "Equal", - "value": "pytest", - "effect": "NoSchedule", - } - ] - }, "initdb": {"args": "--locale=C --encoding=UTF8"}, }, },