From ef3ea69bd249810cf689d4fa6d8dc4f36ec08f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Goinvic?= Date: Fri, 4 Apr 2025 16:59:55 +0200 Subject: [PATCH] rename element-call -> matrix-rtc --- .github/workflows/pytest.yml | 2 +- .../ci/element-web-checkov-values.yaml | 4 +- .../ci/element-web-minimal-values.yaml | 4 +- ...ple-default-enabled-components-values.yaml | 4 +- .../fragments/element-web-pytest-extras.yaml | 2 +- ...l-checkov.yaml => matrix-rtc-checkov.yaml} | 2 +- ...l-minimal.yaml => matrix-rtc-minimal.yaml} | 4 +- ...ras.yaml => matrix-rtc-pytest-extras.yaml} | 6 +-- ...aml => matrix-rtc-secrets-externally.yaml} | 2 +- ...m.yaml => matrix-rtc-secrets-in-helm.yaml} | 6 +-- ...authentication-service-checkov-values.yaml | 4 +- ...ation-service-external-synapse-values.yaml | 4 +- ...authentication-service-minimal-values.yaml | 4 +- ...ce-postgres-secrets-externally-values.yaml | 4 +- ...rvice-postgres-secrets-in-helm-values.yaml | 4 +- ...ion-service-secrets-externally-values.yaml | 4 +- ...cation-service-secrets-in-helm-values.yaml | 4 +- ...ice-synapse-secrets-externally-values.yaml | 4 +- ...ervice-synapse-secrets-in-helm-values.yaml | 4 +- ...es.yaml => matrix-rtc-checkov-values.yaml} | 17 ++++---- ...es.yaml => matrix-rtc-minimal-values.yaml} | 9 ++-- ...matrix-rtc-secrets-externally-values.yaml} | 16 +++---- ...=> matrix-rtc-secrets-in-helm-values.yaml} | 20 ++++----- .../ci/nothing-enabled-values.yaml | 2 +- .../ci/pytest-element-web-values.yaml | 6 +-- ...-matrix-authentication-service-values.yaml | 4 +- ...ues.yaml => pytest-matrix-rtc-values.yaml} | 32 +++++++------- .../ci/pytest-synapse-values.yaml | 4 +- .../ci/pytest-well-known-values.yaml | 4 +- ...setup-certificates-pg-external-values.yaml | 4 +- ...etup-certificates-pg-with-helm-values.yaml | 4 +- ...etup-external-cert-pg-external-values.yaml | 2 + ...tup-external-cert-pg-with-helm-values.yaml | 2 + ...-setup-letsencrypt-pg-external-values.yaml | 4 +- ...setup-letsencrypt-pg-with-helm-values.yaml | 4 +- ...etup-wildcard-cert-pg-external-values.yaml | 4 +- ...tup-wildcard-cert-pg-with-helm-values.yaml | 4 +- .../synapse-checkov-with-workers-values.yaml | 4 +- ...napse-ingress-additional-paths-values.yaml | 4 +- .../ci/synapse-minimal-values.yaml | 4 +- ...se-postgres-secrets-externally-values.yaml | 4 +- ...napse-postgres-secrets-in-helm-values.yaml | 4 +- .../ci/synapse-secrets-externally-values.yaml | 4 +- .../ci/synapse-secrets-in-helm-values.yaml | 4 +- .../ci/synapse-worker-example-values.yaml | 4 +- .../ci/well-known-checkov-values.yaml | 4 +- .../ci/well-known-element-web-values.yaml | 4 +- .../ci/well-known-mas-values.yaml | 4 +- .../ci/well-known-minimal-values.yaml | 4 +- .../ci/well-known-synapse-mas-values.yaml | 4 +- .../ci/well-known-synapse-values.yaml | 4 +- .../sfu/config.yaml.tpl | 2 +- .../{element-call.json => matrix-rtc.json} | 2 +- ...lement-call.yaml.j2 => matrix-rtc.yaml.j2} | 0 charts/matrix-stack/source/values.schema.json | 4 +- charts/matrix-stack/source/values.yaml.j2 | 6 +-- .../templates/init-secrets/_helpers.tpl | 2 +- .../{element-call => matrix-rtc}/_helpers.tpl | 42 +++++++++---------- .../{element-call => matrix-rtc}/ingress.yaml | 12 +++--- .../sfu_configmap.yaml | 8 ++-- .../sfu_deployment.yaml | 34 +++++++-------- .../sfu_jwt_deployment.yaml | 20 ++++----- .../sfu_jwt_secret.yaml | 10 ++--- .../sfu_jwt_service.yaml | 8 ++-- .../sfu_jwt_service_monitor.yaml | 8 ++-- .../sfu_jwt_serviceaccount.yaml | 4 +- .../sfu_rtc_tcp_service.yaml | 8 ++-- .../sfu_rtc_udp_muxer_service.yaml | 8 ++-- .../sfu_rtc_udp_range_service.yaml | 8 ++-- .../sfu_service.yaml | 8 ++-- .../sfu_service_monitor.yaml | 8 ++-- .../sfu_serviceaccount.yaml | 4 +- .../templates/well-known/_helpers.tpl | 4 +- charts/matrix-stack/values.schema.json | 7 +++- charts/matrix-stack/values.yaml | 7 +++- newsfragments/343.added.md | 2 +- ...assemble_ci_values_files_from_fragments.sh | 2 +- tests/integration/env/element-call.rc | 5 --- tests/integration/env/matrix-rtc.rc | 5 +++ tests/integration/fixtures/helm.py | 10 ++--- tests/integration/test_element_call.py | 12 +++--- tests/integration/test_element_web.py | 2 +- .../integration/test_well_known_delegation.py | 4 +- tests/manifests/__init__.py | 8 ++-- tests/manifests/test_well_known_delegation.py | 2 +- 85 files changed, 277 insertions(+), 269 deletions(-) rename charts/matrix-stack/ci/fragments/{element-call-checkov.yaml => matrix-rtc-checkov.yaml} (95%) rename charts/matrix-stack/ci/fragments/{element-call-minimal.yaml => matrix-rtc-minimal.yaml} (71%) rename charts/matrix-stack/ci/fragments/{element-call-pytest-extras.yaml => matrix-rtc-pytest-extras.yaml} (75%) rename charts/matrix-stack/ci/fragments/{element-call-secrets-externally.yaml => matrix-rtc-secrets-externally.yaml} (94%) rename charts/matrix-stack/ci/fragments/{element-call-secrets-in-helm.yaml => matrix-rtc-secrets-in-helm.yaml} (56%) rename charts/matrix-stack/ci/{element-call-checkov-values.yaml => matrix-rtc-checkov-values.yaml} (82%) rename charts/matrix-stack/ci/{element-call-minimal-values.yaml => matrix-rtc-minimal-values.yaml} (79%) rename charts/matrix-stack/ci/{element-call-secrets-externally-values.yaml => matrix-rtc-secrets-externally-values.yaml} (81%) rename charts/matrix-stack/ci/{element-call-secrets-in-helm-values.yaml => matrix-rtc-secrets-in-helm-values.yaml} (67%) rename charts/matrix-stack/ci/{pytest-element-call-values.yaml => pytest-matrix-rtc-values.yaml} (82%) rename charts/matrix-stack/configs/{element-call => matrix-rtc}/sfu/config.yaml.tpl (94%) rename charts/matrix-stack/source/{element-call.json => matrix-rtc.json} (99%) rename charts/matrix-stack/source/{element-call.yaml.j2 => matrix-rtc.yaml.j2} (100%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/_helpers.tpl (66%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/ingress.yaml (69%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/sfu_configmap.yaml (55%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/sfu_deployment.yaml (78%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/sfu_jwt_deployment.yaml (68%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/sfu_jwt_secret.yaml (61%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/sfu_jwt_service.yaml (54%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/sfu_jwt_service_monitor.yaml (68%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/sfu_jwt_serviceaccount.yaml (64%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/sfu_rtc_tcp_service.yaml (70%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/sfu_rtc_udp_muxer_service.yaml (71%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/sfu_rtc_udp_range_service.yaml (72%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/sfu_service.yaml (60%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/sfu_service_monitor.yaml (71%) rename charts/matrix-stack/templates/{element-call => matrix-rtc}/sfu_serviceaccount.yaml (71%) delete mode 100644 tests/integration/env/element-call.rc create mode 100644 tests/integration/env/matrix-rtc.rc diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index a6d66cec..812062a4 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -28,9 +28,9 @@ jobs: fail-fast: false matrix: test-component: - - element-call - element-web - matrix-authentication-service + - matrix-rtc - synapse - well-known-delegation steps: diff --git a/charts/matrix-stack/ci/element-web-checkov-values.yaml b/charts/matrix-stack/ci/element-web-checkov-values.yaml index c0dadd01..d83c5b98 100644 --- a/charts/matrix-stack/ci/element-web-checkov-values.yaml +++ b/charts/matrix-stack/ci/element-web-checkov-values.yaml @@ -6,8 +6,6 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: annotations: checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed @@ -17,6 +15,8 @@ elementWeb: host: element.ess.localhost matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false synapse: enabled: false wellKnownDelegation: diff --git a/charts/matrix-stack/ci/element-web-minimal-values.yaml b/charts/matrix-stack/ci/element-web-minimal-values.yaml index 12fd5722..9d8d3135 100644 --- a/charts/matrix-stack/ci/element-web-minimal-values.yaml +++ b/charts/matrix-stack/ci/element-web-minimal-values.yaml @@ -6,13 +6,13 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: ingress: host: element.ess.localhost matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false synapse: enabled: false wellKnownDelegation: diff --git a/charts/matrix-stack/ci/example-default-enabled-components-values.yaml b/charts/matrix-stack/ci/example-default-enabled-components-values.yaml index 1c747bdc..f1bf7c4c 100644 --- a/charts/matrix-stack/ci/example-default-enabled-components-values.yaml +++ b/charts/matrix-stack/ci/example-default-enabled-components-values.yaml @@ -6,14 +6,14 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres, wellKnownDelegation don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: ingress: host: element.ess.localhost matrixAuthenticationService: ingress: host: mas.ess.localhost +matrixRTC: + enabled: false serverName: ess.localhost synapse: ingress: diff --git a/charts/matrix-stack/ci/fragments/element-web-pytest-extras.yaml b/charts/matrix-stack/ci/fragments/element-web-pytest-extras.yaml index a560a9b6..7d26c759 100644 --- a/charts/matrix-stack/ci/fragments/element-web-pytest-extras.yaml +++ b/charts/matrix-stack/ci/fragments/element-web-pytest-extras.yaml @@ -26,7 +26,7 @@ elementWeb: } }, "element_call": { - "url": "https://call.{{ $.Values.serverName }}", + "url": "https://mrtc.{{ $.Values.serverName }}", "use_exclusively": true }, "features": { diff --git a/charts/matrix-stack/ci/fragments/element-call-checkov.yaml b/charts/matrix-stack/ci/fragments/matrix-rtc-checkov.yaml similarity index 95% rename from charts/matrix-stack/ci/fragments/element-call-checkov.yaml rename to charts/matrix-stack/ci/fragments/matrix-rtc-checkov.yaml index 9a6b304e..1fa263da 100644 --- a/charts/matrix-stack/ci/fragments/element-call-checkov.yaml +++ b/charts/matrix-stack/ci/fragments/matrix-rtc-checkov.yaml @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: AGPL-3.0-only -elementCall: +matrixRTC: annotations: checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed checkov.io/skip2: CKV_K8S_43=No digests diff --git a/charts/matrix-stack/ci/fragments/element-call-minimal.yaml b/charts/matrix-stack/ci/fragments/matrix-rtc-minimal.yaml similarity index 71% rename from charts/matrix-stack/ci/fragments/element-call-minimal.yaml rename to charts/matrix-stack/ci/fragments/matrix-rtc-minimal.yaml index 2865e1e8..6e8a3bdd 100644 --- a/charts/matrix-stack/ci/fragments/element-call-minimal.yaml +++ b/charts/matrix-stack/ci/fragments/matrix-rtc-minimal.yaml @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: AGPL-3.0-only -elementCall: +matrixRTC: enabled: true ingress: - host: rtc.ess.localhost + host: mrtc.ess.localhost diff --git a/charts/matrix-stack/ci/fragments/element-call-pytest-extras.yaml b/charts/matrix-stack/ci/fragments/matrix-rtc-pytest-extras.yaml similarity index 75% rename from charts/matrix-stack/ci/fragments/element-call-pytest-extras.yaml rename to charts/matrix-stack/ci/fragments/matrix-rtc-pytest-extras.yaml index 2c01dc1e..a98e975d 100644 --- a/charts/matrix-stack/ci/fragments/element-call-pytest-extras.yaml +++ b/charts/matrix-stack/ci/fragments/matrix-rtc-pytest-extras.yaml @@ -2,10 +2,10 @@ # # SPDX-License-Identifier: AGPL-3.0-only -elementCall: +matrixRTC: ingress: - host: call.{{ $.Values.serverName }} - tlsSecret: "{{ $.Release.Name }}-element-call-tls" + host: mrtc.{{ $.Values.serverName }} + tlsSecret: "{{ $.Release.Name }}-matrix-rtc-tls" extraEnv: - name: LIVEKIT_INSECURE_SKIP_VERIFY_TLS value: "YES_I_KNOW_WHAT_I_AM_DOING" diff --git a/charts/matrix-stack/ci/fragments/element-call-secrets-externally.yaml b/charts/matrix-stack/ci/fragments/matrix-rtc-secrets-externally.yaml similarity index 94% rename from charts/matrix-stack/ci/fragments/element-call-secrets-externally.yaml rename to charts/matrix-stack/ci/fragments/matrix-rtc-secrets-externally.yaml index e06d0f7f..5281d542 100644 --- a/charts/matrix-stack/ci/fragments/element-call-secrets-externally.yaml +++ b/charts/matrix-stack/ci/fragments/matrix-rtc-secrets-externally.yaml @@ -3,7 +3,7 @@ # # SPDX-License-Identifier: AGPL-3.0-only -elementCall: +matrixRTC: livekitKey: value: CHANGEME-eingaexei5eim5EiyaiK7Phaejihus5e livekitSecret: diff --git a/charts/matrix-stack/ci/fragments/element-call-secrets-in-helm.yaml b/charts/matrix-stack/ci/fragments/matrix-rtc-secrets-in-helm.yaml similarity index 56% rename from charts/matrix-stack/ci/fragments/element-call-secrets-in-helm.yaml rename to charts/matrix-stack/ci/fragments/matrix-rtc-secrets-in-helm.yaml index 3e598902..a94dc8b8 100644 --- a/charts/matrix-stack/ci/fragments/element-call-secrets-in-helm.yaml +++ b/charts/matrix-stack/ci/fragments/matrix-rtc-secrets-in-helm.yaml @@ -4,12 +4,12 @@ # # SPDX-License-Identifier: AGPL-3.0-only -elementCall: +matrixRTC: livekitKey: - secret: "{{ $.Release.Name }}-element-call-external" + secret: "{{ $.Release.Name }}-matrix-rtc-external" secretKey: livekitKey livekitSecret: - secret: "{{ $.Release.Name }}-element-call-external" + secret: "{{ $.Release.Name }}-matrix-rtc-external" secretKey: livekitSecret diff --git a/charts/matrix-stack/ci/matrix-authentication-service-checkov-values.yaml b/charts/matrix-stack/ci/matrix-authentication-service-checkov-values.yaml index 5bffd8ff..b6929565 100644 --- a/charts/matrix-stack/ci/matrix-authentication-service-checkov-values.yaml +++ b/charts/matrix-stack/ci/matrix-authentication-service-checkov-values.yaml @@ -5,8 +5,6 @@ # source_fragments: matrix-authentication-service-minimal.yaml matrix-authentication-service-checkov.yaml init-secrets-minimal.yaml init-secrets-checkov.yaml postgres-minimal.yaml postgres-checkov.yaml # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values -elementCall: - enabled: false elementWeb: enabled: false initSecrets: @@ -22,6 +20,8 @@ matrixAuthenticationService: checkov.io/skip3: CKV2_K8S_6=No network policy yet ingress: host: mas.ess.localhost +matrixRTC: + enabled: false postgres: annotations: checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed diff --git a/charts/matrix-stack/ci/matrix-authentication-service-external-synapse-values.yaml b/charts/matrix-stack/ci/matrix-authentication-service-external-synapse-values.yaml index f4c781e5..4d734f1b 100644 --- a/charts/matrix-stack/ci/matrix-authentication-service-external-synapse-values.yaml +++ b/charts/matrix-stack/ci/matrix-authentication-service-external-synapse-values.yaml @@ -6,8 +6,6 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: @@ -24,6 +22,8 @@ matrixAuthenticationService: endpoint: https://syn.external.localhost ingress: host: mas.ess.localhost +matrixRTC: + enabled: false synapse: enabled: false wellKnownDelegation: diff --git a/charts/matrix-stack/ci/matrix-authentication-service-minimal-values.yaml b/charts/matrix-stack/ci/matrix-authentication-service-minimal-values.yaml index 1e7ee134..9487f101 100644 --- a/charts/matrix-stack/ci/matrix-authentication-service-minimal-values.yaml +++ b/charts/matrix-stack/ci/matrix-authentication-service-minimal-values.yaml @@ -6,13 +6,13 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: ingress: host: mas.ess.localhost +matrixRTC: + enabled: false synapse: enabled: false wellKnownDelegation: diff --git a/charts/matrix-stack/ci/matrix-authentication-service-postgres-secrets-externally-values.yaml b/charts/matrix-stack/ci/matrix-authentication-service-postgres-secrets-externally-values.yaml index 2bd776be..12779cc6 100644 --- a/charts/matrix-stack/ci/matrix-authentication-service-postgres-secrets-externally-values.yaml +++ b/charts/matrix-stack/ci/matrix-authentication-service-postgres-secrets-externally-values.yaml @@ -5,8 +5,6 @@ # source_fragments: matrix-authentication-service-minimal.yaml matrix-authentication-service-secrets-externally.yaml postgres-secrets-externally.yaml postgres-matrix-authentication-service-secrets-externally.yaml init-secrets-disabled.yaml # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values -elementCall: - enabled: false elementWeb: enabled: false initSecrets: @@ -36,6 +34,8 @@ matrixAuthenticationService: synapseSharedSecret: secret: '{{ $.Release.Name }}-mas-external' secretKey: synapseShared +matrixRTC: + enabled: false postgres: adminPassword: secret: '{{ $.Release.Name }}-pg-external' diff --git a/charts/matrix-stack/ci/matrix-authentication-service-postgres-secrets-in-helm-values.yaml b/charts/matrix-stack/ci/matrix-authentication-service-postgres-secrets-in-helm-values.yaml index f1f0bbf1..9823cb2a 100644 --- a/charts/matrix-stack/ci/matrix-authentication-service-postgres-secrets-in-helm-values.yaml +++ b/charts/matrix-stack/ci/matrix-authentication-service-postgres-secrets-in-helm-values.yaml @@ -5,8 +5,6 @@ # source_fragments: matrix-authentication-service-minimal.yaml matrix-authentication-service-secrets-externally.yaml postgres-secrets-in-helm.yaml postgres-matrix-authentication-service-secrets-in-helm.yaml init-secrets-disabled.yaml # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values -elementCall: - enabled: false elementWeb: enabled: false initSecrets: @@ -36,6 +34,8 @@ matrixAuthenticationService: synapseSharedSecret: secret: '{{ $.Release.Name }}-mas-external' secretKey: synapseShared +matrixRTC: + enabled: false postgres: adminPassword: value: CHANGEME-phiaPh8iu9tiivaiWahquaeg8ohcub4a diff --git a/charts/matrix-stack/ci/matrix-authentication-service-secrets-externally-values.yaml b/charts/matrix-stack/ci/matrix-authentication-service-secrets-externally-values.yaml index cdf21ed3..c4406d47 100644 --- a/charts/matrix-stack/ci/matrix-authentication-service-secrets-externally-values.yaml +++ b/charts/matrix-stack/ci/matrix-authentication-service-secrets-externally-values.yaml @@ -6,8 +6,6 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: @@ -42,6 +40,8 @@ matrixAuthenticationService: synapseSharedSecret: secret: '{{ $.Release.Name }}-mas-external' secretKey: synapseShared +matrixRTC: + enabled: false synapse: enabled: false wellKnownDelegation: diff --git a/charts/matrix-stack/ci/matrix-authentication-service-secrets-in-helm-values.yaml b/charts/matrix-stack/ci/matrix-authentication-service-secrets-in-helm-values.yaml index 605b49fd..08e6c92c 100644 --- a/charts/matrix-stack/ci/matrix-authentication-service-secrets-in-helm-values.yaml +++ b/charts/matrix-stack/ci/matrix-authentication-service-secrets-in-helm-values.yaml @@ -6,8 +6,6 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: @@ -48,6 +46,8 @@ matrixAuthenticationService: value: CHANGEME-eiv6wae8shooPhie4ief8ru2egahbah0 synapseSharedSecret: value: CHANGEME-iaw8eeSef4zeefie8ii3akien9tiaYah +matrixRTC: + enabled: false synapse: enabled: false wellKnownDelegation: diff --git a/charts/matrix-stack/ci/matrix-authentication-service-synapse-secrets-externally-values.yaml b/charts/matrix-stack/ci/matrix-authentication-service-synapse-secrets-externally-values.yaml index acf8d5fd..3fa42fea 100644 --- a/charts/matrix-stack/ci/matrix-authentication-service-synapse-secrets-externally-values.yaml +++ b/charts/matrix-stack/ci/matrix-authentication-service-synapse-secrets-externally-values.yaml @@ -6,8 +6,6 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: @@ -42,6 +40,8 @@ matrixAuthenticationService: synapseSharedSecret: secret: '{{ $.Release.Name }}-mas-external' secretKey: synapseShared +matrixRTC: + enabled: false serverName: ess.localhost synapse: appservices: diff --git a/charts/matrix-stack/ci/matrix-authentication-service-synapse-secrets-in-helm-values.yaml b/charts/matrix-stack/ci/matrix-authentication-service-synapse-secrets-in-helm-values.yaml index 3cd9c795..ade6aba2 100644 --- a/charts/matrix-stack/ci/matrix-authentication-service-synapse-secrets-in-helm-values.yaml +++ b/charts/matrix-stack/ci/matrix-authentication-service-synapse-secrets-in-helm-values.yaml @@ -6,8 +6,6 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: @@ -48,6 +46,8 @@ matrixAuthenticationService: value: CHANGEME-eiv6wae8shooPhie4ief8ru2egahbah0 synapseSharedSecret: value: CHANGEME-iaw8eeSef4zeefie8ii3akien9tiaYah +matrixRTC: + enabled: false serverName: ess.localhost synapse: ingress: diff --git a/charts/matrix-stack/ci/element-call-checkov-values.yaml b/charts/matrix-stack/ci/matrix-rtc-checkov-values.yaml similarity index 82% rename from charts/matrix-stack/ci/element-call-checkov-values.yaml rename to charts/matrix-stack/ci/matrix-rtc-checkov-values.yaml index 21cf22d6..3e00ede3 100644 --- a/charts/matrix-stack/ci/element-call-checkov-values.yaml +++ b/charts/matrix-stack/ci/matrix-rtc-checkov-values.yaml @@ -2,22 +2,21 @@ # # SPDX-License-Identifier: AGPL-3.0-only # -# source_fragments: element-call-minimal.yaml element-call-checkov.yaml +# source_fragments: matrix-rtc-minimal.yaml matrix-rtc-checkov.yaml # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - annotations: - checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed - checkov.io/skip2: CKV_K8S_43=No digests - checkov.io/skip3: CKV2_K8S_6=No network policy yet - enabled: true - ingress: - host: rtc.ess.localhost elementWeb: enabled: false matrixAuthenticationService: enabled: false +matrixRTC: + annotations: + checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed + checkov.io/skip2: CKV_K8S_43=No digests + checkov.io/skip3: CKV2_K8S_6=No network policy yet + ingress: + host: mrtc.ess.localhost synapse: enabled: false wellKnownDelegation: diff --git a/charts/matrix-stack/ci/element-call-minimal-values.yaml b/charts/matrix-stack/ci/matrix-rtc-minimal-values.yaml similarity index 79% rename from charts/matrix-stack/ci/element-call-minimal-values.yaml rename to charts/matrix-stack/ci/matrix-rtc-minimal-values.yaml index 4e489b3d..007e2d09 100644 --- a/charts/matrix-stack/ci/element-call-minimal-values.yaml +++ b/charts/matrix-stack/ci/matrix-rtc-minimal-values.yaml @@ -2,18 +2,17 @@ # # SPDX-License-Identifier: AGPL-3.0-only # -# source_fragments: element-call-minimal.yaml +# source_fragments: matrix-rtc-minimal.yaml # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: true - ingress: - host: rtc.ess.localhost elementWeb: enabled: false matrixAuthenticationService: enabled: false +matrixRTC: + ingress: + host: mrtc.ess.localhost synapse: enabled: false wellKnownDelegation: diff --git a/charts/matrix-stack/ci/element-call-secrets-externally-values.yaml b/charts/matrix-stack/ci/matrix-rtc-secrets-externally-values.yaml similarity index 81% rename from charts/matrix-stack/ci/element-call-secrets-externally-values.yaml rename to charts/matrix-stack/ci/matrix-rtc-secrets-externally-values.yaml index c9c2ff0f..fd0d8b95 100644 --- a/charts/matrix-stack/ci/element-call-secrets-externally-values.yaml +++ b/charts/matrix-stack/ci/matrix-rtc-secrets-externally-values.yaml @@ -2,21 +2,21 @@ # # SPDX-License-Identifier: AGPL-3.0-only # -# source_fragments: element-call-minimal.yaml element-call-secrets-externally.yaml +# source_fragments: matrix-rtc-minimal.yaml matrix-rtc-secrets-externally.yaml # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - ingress: - host: rtc.ess.localhost - livekitKey: - value: CHANGEME-eingaexei5eim5EiyaiK7Phaejihus5e - livekitSecret: - value: CHANGEME-gohseengahch9pheedi5OomeHea6maem elementWeb: enabled: false matrixAuthenticationService: enabled: false +matrixRTC: + ingress: + host: mrtc.ess.localhost + livekitKey: + value: CHANGEME-eingaexei5eim5EiyaiK7Phaejihus5e + livekitSecret: + value: CHANGEME-gohseengahch9pheedi5OomeHea6maem synapse: enabled: false wellKnownDelegation: diff --git a/charts/matrix-stack/ci/element-call-secrets-in-helm-values.yaml b/charts/matrix-stack/ci/matrix-rtc-secrets-in-helm-values.yaml similarity index 67% rename from charts/matrix-stack/ci/element-call-secrets-in-helm-values.yaml rename to charts/matrix-stack/ci/matrix-rtc-secrets-in-helm-values.yaml index d5507a52..a7c67b74 100644 --- a/charts/matrix-stack/ci/element-call-secrets-in-helm-values.yaml +++ b/charts/matrix-stack/ci/matrix-rtc-secrets-in-helm-values.yaml @@ -2,23 +2,23 @@ # # SPDX-License-Identifier: AGPL-3.0-only # -# source_fragments: element-call-minimal.yaml element-call-secrets-in-helm.yaml +# source_fragments: matrix-rtc-minimal.yaml matrix-rtc-secrets-in-helm.yaml # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - ingress: - host: rtc.ess.localhost - livekitKey: - secret: '{{ $.Release.Name }}-element-call-external' - secretKey: livekitKey - livekitSecret: - secret: '{{ $.Release.Name }}-element-call-external' - secretKey: livekitSecret elementWeb: enabled: false matrixAuthenticationService: enabled: false +matrixRTC: + ingress: + host: mrtc.ess.localhost + livekitKey: + secret: '{{ $.Release.Name }}-matrix-rtc-external' + secretKey: livekitKey + livekitSecret: + secret: '{{ $.Release.Name }}-matrix-rtc-external' + secretKey: livekitSecret synapse: enabled: false wellKnownDelegation: diff --git a/charts/matrix-stack/ci/nothing-enabled-values.yaml b/charts/matrix-stack/ci/nothing-enabled-values.yaml index 3b335f55..d6115ade 100644 --- a/charts/matrix-stack/ci/nothing-enabled-values.yaml +++ b/charts/matrix-stack/ci/nothing-enabled-values.yaml @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: AGPL-3.0-only -elementCall: +matrixRTC: enabled: false elementWeb: diff --git a/charts/matrix-stack/ci/pytest-element-web-values.yaml b/charts/matrix-stack/ci/pytest-element-web-values.yaml index 647e97a1..f79696e7 100644 --- a/charts/matrix-stack/ci/pytest-element-web-values.yaml +++ b/charts/matrix-stack/ci/pytest-element-web-values.yaml @@ -6,8 +6,6 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: additional: user-config.json: | @@ -18,7 +16,7 @@ elementWeb: } }, "element_call": { - "url": "https://call.{{ $.Values.serverName }}", + "url": "https://mrtc.{{ $.Values.serverName }}", "use_exclusively": true }, "features": { @@ -38,6 +36,8 @@ elementWeb: replicas: 1 matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false serverName: ess.localhost synapse: enabled: false diff --git a/charts/matrix-stack/ci/pytest-matrix-authentication-service-values.yaml b/charts/matrix-stack/ci/pytest-matrix-authentication-service-values.yaml index f9ab368c..492d9bd5 100644 --- a/charts/matrix-stack/ci/pytest-matrix-authentication-service-values.yaml +++ b/charts/matrix-stack/ci/pytest-matrix-authentication-service-values.yaml @@ -5,8 +5,6 @@ # source_fragments: synapse-minimal.yaml synapse-pytest-base-extras.yaml matrix-authentication-service-minimal.yaml matrix-authentication-service-pytest-extras.yaml init-secrets-minimal.yaml init-secrets-pytest-extras.yaml postgres-minimal.yaml # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values -elementCall: - enabled: false elementWeb: enabled: false haproxy: @@ -30,6 +28,8 @@ matrixAuthenticationService: tlsSecret: '{{ $.Release.Name }}-mas-web-tls' podSecurityContext: runAsGroup: 0 +matrixRTC: + enabled: false postgres: podSecurityContext: runAsGroup: 0 diff --git a/charts/matrix-stack/ci/pytest-element-call-values.yaml b/charts/matrix-stack/ci/pytest-matrix-rtc-values.yaml similarity index 82% rename from charts/matrix-stack/ci/pytest-element-call-values.yaml rename to charts/matrix-stack/ci/pytest-matrix-rtc-values.yaml index 4c44833b..4aa69e73 100644 --- a/charts/matrix-stack/ci/pytest-element-call-values.yaml +++ b/charts/matrix-stack/ci/pytest-matrix-rtc-values.yaml @@ -2,24 +2,9 @@ # # SPDX-License-Identifier: AGPL-3.0-only # -# source_fragments: element-call-minimal.yaml element-call-pytest-extras.yaml synapse-minimal.yaml synapse-pytest-base-extras.yaml synapse-pytest-self-extras.yaml matrix-authentication-service-minimal.yaml matrix-authentication-service-pytest-extras.yaml init-secrets-minimal.yaml init-secrets-pytest-extras.yaml postgres-minimal.yaml well-known-minimal.yaml well-known-pytest-extras.yaml +# source_fragments: matrix-rtc-minimal.yaml matrix-rtc-pytest-extras.yaml synapse-minimal.yaml synapse-pytest-base-extras.yaml synapse-pytest-self-extras.yaml matrix-authentication-service-minimal.yaml matrix-authentication-service-pytest-extras.yaml init-secrets-minimal.yaml init-secrets-pytest-extras.yaml postgres-minimal.yaml well-known-minimal.yaml well-known-pytest-extras.yaml # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values -elementCall: - extraEnv: - - name: LIVEKIT_INSECURE_SKIP_VERIFY_TLS - value: YES_I_KNOW_WHAT_I_AM_DOING - ingress: - host: call.{{ $.Values.serverName }} - tlsSecret: '{{ $.Release.Name }}-element-call-tls' - podSecurityContext: - runAsGroup: 0 - sfu: - extraEnv: - - name: DEBUG_RENDERING - value: "1" - podSecurityContext: - runAsGroup: 0 elementWeb: enabled: false global: @@ -47,6 +32,21 @@ matrixAuthenticationService: tlsSecret: '{{ $.Release.Name }}-mas-web-tls' podSecurityContext: runAsGroup: 0 +matrixRTC: + extraEnv: + - name: LIVEKIT_INSECURE_SKIP_VERIFY_TLS + value: YES_I_KNOW_WHAT_I_AM_DOING + ingress: + host: mrtc.{{ $.Values.serverName }} + tlsSecret: '{{ $.Release.Name }}-matrix-rtc-tls' + podSecurityContext: + runAsGroup: 0 + sfu: + extraEnv: + - name: DEBUG_RENDERING + value: "1" + podSecurityContext: + runAsGroup: 0 postgres: podSecurityContext: runAsGroup: 0 diff --git a/charts/matrix-stack/ci/pytest-synapse-values.yaml b/charts/matrix-stack/ci/pytest-synapse-values.yaml index bb1754ab..70b53a20 100644 --- a/charts/matrix-stack/ci/pytest-synapse-values.yaml +++ b/charts/matrix-stack/ci/pytest-synapse-values.yaml @@ -5,8 +5,6 @@ # source_fragments: synapse-minimal.yaml synapse-pytest-base-extras.yaml synapse-pytest-self-extras.yaml init-secrets-minimal.yaml init-secrets-pytest-extras.yaml postgres-minimal.yaml # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values -elementCall: - enabled: false elementWeb: enabled: false haproxy: @@ -19,6 +17,8 @@ initSecrets: runAsGroup: 0 matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false postgres: podSecurityContext: runAsGroup: 0 diff --git a/charts/matrix-stack/ci/pytest-well-known-values.yaml b/charts/matrix-stack/ci/pytest-well-known-values.yaml index 016f7a64..bcdea3eb 100644 --- a/charts/matrix-stack/ci/pytest-well-known-values.yaml +++ b/charts/matrix-stack/ci/pytest-well-known-values.yaml @@ -6,8 +6,6 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false global: @@ -19,6 +17,8 @@ ingress: controllerType: ingress-nginx matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false # To check that templating works against the ingress serverName: '{{ $.Values.global.baseDomain }}' synapse: diff --git a/charts/matrix-stack/ci/quick-setup-certificates-pg-external-values.yaml b/charts/matrix-stack/ci/quick-setup-certificates-pg-external-values.yaml index 84683ccb..cc5552a1 100644 --- a/charts/matrix-stack/ci/quick-setup-certificates-pg-external-values.yaml +++ b/charts/matrix-stack/ci/quick-setup-certificates-pg-external-values.yaml @@ -6,8 +6,6 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: ingress: host: chat.your.tld @@ -24,6 +22,8 @@ matrixAuthenticationService: port: 5432 sslMode: prefer user: your-matrix-auth-service-user +matrixRTC: + enabled: false serverName: your.tld synapse: ingress: diff --git a/charts/matrix-stack/ci/quick-setup-certificates-pg-with-helm-values.yaml b/charts/matrix-stack/ci/quick-setup-certificates-pg-with-helm-values.yaml index bbe3b394..ac532967 100644 --- a/charts/matrix-stack/ci/quick-setup-certificates-pg-with-helm-values.yaml +++ b/charts/matrix-stack/ci/quick-setup-certificates-pg-with-helm-values.yaml @@ -6,8 +6,6 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: ingress: host: chat.your.tld @@ -16,6 +14,8 @@ matrixAuthenticationService: ingress: host: account.your.tld tlsSecret: ess-auth-certificate +matrixRTC: + enabled: false serverName: your.tld synapse: ingress: diff --git a/charts/matrix-stack/ci/quick-setup-external-cert-pg-external-values.yaml b/charts/matrix-stack/ci/quick-setup-external-cert-pg-external-values.yaml index f80ccb9d..1baa1935 100644 --- a/charts/matrix-stack/ci/quick-setup-external-cert-pg-external-values.yaml +++ b/charts/matrix-stack/ci/quick-setup-external-cert-pg-external-values.yaml @@ -22,6 +22,8 @@ matrixAuthenticationService: port: 5432 sslMode: prefer user: your-matrix-auth-service-user +matrixRTC: + enabled: false serverName: your.tld synapse: ingress: diff --git a/charts/matrix-stack/ci/quick-setup-external-cert-pg-with-helm-values.yaml b/charts/matrix-stack/ci/quick-setup-external-cert-pg-with-helm-values.yaml index 1be5485d..1c42059b 100644 --- a/charts/matrix-stack/ci/quick-setup-external-cert-pg-with-helm-values.yaml +++ b/charts/matrix-stack/ci/quick-setup-external-cert-pg-with-helm-values.yaml @@ -14,6 +14,8 @@ ingress: matrixAuthenticationService: ingress: host: account.your.tld +matrixRTC: + enabled: false serverName: your.tld synapse: ingress: diff --git a/charts/matrix-stack/ci/quick-setup-letsencrypt-pg-external-values.yaml b/charts/matrix-stack/ci/quick-setup-letsencrypt-pg-external-values.yaml index 89b1a064..8cc1120b 100644 --- a/charts/matrix-stack/ci/quick-setup-letsencrypt-pg-external-values.yaml +++ b/charts/matrix-stack/ci/quick-setup-letsencrypt-pg-external-values.yaml @@ -8,8 +8,6 @@ # initSecrets, postgres, wellKnownDelegation don't have any required properties to be set and defaults to enabled certManager: clusterIssuer: letsencrypt-prod -elementCall: - enabled: false elementWeb: ingress: host: chat.your.tld @@ -24,6 +22,8 @@ matrixAuthenticationService: port: 5432 sslMode: prefer user: your-matrix-auth-service-user +matrixRTC: + enabled: false serverName: your.tld synapse: ingress: diff --git a/charts/matrix-stack/ci/quick-setup-letsencrypt-pg-with-helm-values.yaml b/charts/matrix-stack/ci/quick-setup-letsencrypt-pg-with-helm-values.yaml index 51435dca..6d3de157 100644 --- a/charts/matrix-stack/ci/quick-setup-letsencrypt-pg-with-helm-values.yaml +++ b/charts/matrix-stack/ci/quick-setup-letsencrypt-pg-with-helm-values.yaml @@ -8,14 +8,14 @@ # initSecrets, postgres, wellKnownDelegation don't have any required properties to be set and defaults to enabled certManager: clusterIssuer: letsencrypt-prod -elementCall: - enabled: false elementWeb: ingress: host: chat.your.tld matrixAuthenticationService: ingress: host: account.your.tld +matrixRTC: + enabled: false serverName: your.tld synapse: ingress: diff --git a/charts/matrix-stack/ci/quick-setup-wildcard-cert-pg-external-values.yaml b/charts/matrix-stack/ci/quick-setup-wildcard-cert-pg-external-values.yaml index df5d65a2..550b5c44 100644 --- a/charts/matrix-stack/ci/quick-setup-wildcard-cert-pg-external-values.yaml +++ b/charts/matrix-stack/ci/quick-setup-wildcard-cert-pg-external-values.yaml @@ -6,8 +6,6 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres, wellKnownDelegation don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: ingress: host: chat.your.tld @@ -24,6 +22,8 @@ matrixAuthenticationService: port: 5432 sslMode: prefer user: your-matrix-auth-service-user +matrixRTC: + enabled: false serverName: your.tld synapse: ingress: diff --git a/charts/matrix-stack/ci/quick-setup-wildcard-cert-pg-with-helm-values.yaml b/charts/matrix-stack/ci/quick-setup-wildcard-cert-pg-with-helm-values.yaml index 228406d2..e3bf8162 100644 --- a/charts/matrix-stack/ci/quick-setup-wildcard-cert-pg-with-helm-values.yaml +++ b/charts/matrix-stack/ci/quick-setup-wildcard-cert-pg-with-helm-values.yaml @@ -6,8 +6,6 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres, wellKnownDelegation don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: ingress: host: chat.your.tld @@ -16,6 +14,8 @@ ingress: matrixAuthenticationService: ingress: host: account.your.tld +matrixRTC: + enabled: false serverName: your.tld synapse: ingress: diff --git a/charts/matrix-stack/ci/synapse-checkov-with-workers-values.yaml b/charts/matrix-stack/ci/synapse-checkov-with-workers-values.yaml index a0d14005..3234781b 100644 --- a/charts/matrix-stack/ci/synapse-checkov-with-workers-values.yaml +++ b/charts/matrix-stack/ci/synapse-checkov-with-workers-values.yaml @@ -5,8 +5,6 @@ # source_fragments: synapse-minimal.yaml synapse-some-workers-running.yaml synapse-checkov.yaml haproxy-checkov.yaml init-secrets-minimal.yaml init-secrets-checkov.yaml postgres-minimal.yaml postgres-checkov.yaml # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values -elementCall: - enabled: false elementWeb: enabled: false haproxy: @@ -22,6 +20,8 @@ initSecrets: checkov.io/skip4: CKV_K8S_38=The job needs a service account matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false postgres: annotations: checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed diff --git a/charts/matrix-stack/ci/synapse-ingress-additional-paths-values.yaml b/charts/matrix-stack/ci/synapse-ingress-additional-paths-values.yaml index 27e423d5..220c166e 100644 --- a/charts/matrix-stack/ci/synapse-ingress-additional-paths-values.yaml +++ b/charts/matrix-stack/ci/synapse-ingress-additional-paths-values.yaml @@ -6,12 +6,12 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false serverName: ess.localhost synapse: ingress: diff --git a/charts/matrix-stack/ci/synapse-minimal-values.yaml b/charts/matrix-stack/ci/synapse-minimal-values.yaml index 971a0510..b64c52bc 100644 --- a/charts/matrix-stack/ci/synapse-minimal-values.yaml +++ b/charts/matrix-stack/ci/synapse-minimal-values.yaml @@ -6,12 +6,12 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false serverName: ess.localhost synapse: ingress: diff --git a/charts/matrix-stack/ci/synapse-postgres-secrets-externally-values.yaml b/charts/matrix-stack/ci/synapse-postgres-secrets-externally-values.yaml index 63af70fb..b4ef6af4 100644 --- a/charts/matrix-stack/ci/synapse-postgres-secrets-externally-values.yaml +++ b/charts/matrix-stack/ci/synapse-postgres-secrets-externally-values.yaml @@ -5,14 +5,14 @@ # source_fragments: synapse-minimal.yaml synapse-secrets-externally.yaml postgres-secrets-externally.yaml postgres-synapse-secrets-externally.yaml init-secrets-disabled.yaml # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values -elementCall: - enabled: false elementWeb: enabled: false initSecrets: enabled: false matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false postgres: adminPassword: secret: '{{ $.Release.Name }}-pg-external' diff --git a/charts/matrix-stack/ci/synapse-postgres-secrets-in-helm-values.yaml b/charts/matrix-stack/ci/synapse-postgres-secrets-in-helm-values.yaml index d68532f5..c7fdbcc3 100644 --- a/charts/matrix-stack/ci/synapse-postgres-secrets-in-helm-values.yaml +++ b/charts/matrix-stack/ci/synapse-postgres-secrets-in-helm-values.yaml @@ -5,14 +5,14 @@ # source_fragments: synapse-minimal.yaml synapse-secrets-in-helm.yaml postgres-secrets-in-helm.yaml postgres-synapse-secrets-in-helm.yaml init-secrets-disabled.yaml # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values -elementCall: - enabled: false elementWeb: enabled: false initSecrets: enabled: false matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false postgres: adminPassword: value: CHANGEME-phiaPh8iu9tiivaiWahquaeg8ohcub4a diff --git a/charts/matrix-stack/ci/synapse-secrets-externally-values.yaml b/charts/matrix-stack/ci/synapse-secrets-externally-values.yaml index dff9fe36..cecd46c5 100644 --- a/charts/matrix-stack/ci/synapse-secrets-externally-values.yaml +++ b/charts/matrix-stack/ci/synapse-secrets-externally-values.yaml @@ -6,12 +6,12 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false serverName: ess.localhost synapse: appservices: diff --git a/charts/matrix-stack/ci/synapse-secrets-in-helm-values.yaml b/charts/matrix-stack/ci/synapse-secrets-in-helm-values.yaml index 40ed4dac..61ac72a0 100644 --- a/charts/matrix-stack/ci/synapse-secrets-in-helm-values.yaml +++ b/charts/matrix-stack/ci/synapse-secrets-in-helm-values.yaml @@ -6,12 +6,12 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false serverName: ess.localhost synapse: ingress: diff --git a/charts/matrix-stack/ci/synapse-worker-example-values.yaml b/charts/matrix-stack/ci/synapse-worker-example-values.yaml index ff62ac93..b4d05b2e 100644 --- a/charts/matrix-stack/ci/synapse-worker-example-values.yaml +++ b/charts/matrix-stack/ci/synapse-worker-example-values.yaml @@ -6,12 +6,12 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false serverName: ess.localhost synapse: ingress: diff --git a/charts/matrix-stack/ci/well-known-checkov-values.yaml b/charts/matrix-stack/ci/well-known-checkov-values.yaml index b53112ce..9e520dbc 100644 --- a/charts/matrix-stack/ci/well-known-checkov-values.yaml +++ b/charts/matrix-stack/ci/well-known-checkov-values.yaml @@ -6,8 +6,6 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres, wellKnownDelegation don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false haproxy: @@ -17,6 +15,8 @@ haproxy: checkov.io/skip3: CKV2_K8S_6=No network policy yet matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false serverName: ess.localhost synapse: enabled: false diff --git a/charts/matrix-stack/ci/well-known-element-web-values.yaml b/charts/matrix-stack/ci/well-known-element-web-values.yaml index f01cfa10..92fafc98 100644 --- a/charts/matrix-stack/ci/well-known-element-web-values.yaml +++ b/charts/matrix-stack/ci/well-known-element-web-values.yaml @@ -6,13 +6,13 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres, wellKnownDelegation don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: ingress: host: element.ess.localhost matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false serverName: ess.localhost synapse: enabled: false diff --git a/charts/matrix-stack/ci/well-known-mas-values.yaml b/charts/matrix-stack/ci/well-known-mas-values.yaml index dcfa95d2..5a5c9ab0 100644 --- a/charts/matrix-stack/ci/well-known-mas-values.yaml +++ b/charts/matrix-stack/ci/well-known-mas-values.yaml @@ -6,13 +6,13 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres, wellKnownDelegation don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: ingress: host: mas.ess.localhost +matrixRTC: + enabled: false serverName: ess.localhost synapse: enabled: false diff --git a/charts/matrix-stack/ci/well-known-minimal-values.yaml b/charts/matrix-stack/ci/well-known-minimal-values.yaml index b595a474..1becb698 100644 --- a/charts/matrix-stack/ci/well-known-minimal-values.yaml +++ b/charts/matrix-stack/ci/well-known-minimal-values.yaml @@ -6,14 +6,14 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # postgres, wellKnownDelegation don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false initSecrets: enabled: false matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false serverName: ess.localhost synapse: enabled: false diff --git a/charts/matrix-stack/ci/well-known-synapse-mas-values.yaml b/charts/matrix-stack/ci/well-known-synapse-mas-values.yaml index 40c49efc..c984b2e8 100644 --- a/charts/matrix-stack/ci/well-known-synapse-mas-values.yaml +++ b/charts/matrix-stack/ci/well-known-synapse-mas-values.yaml @@ -6,13 +6,13 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres, wellKnownDelegation don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: ingress: host: mas.ess.localhost +matrixRTC: + enabled: false serverName: ess.localhost synapse: ingress: diff --git a/charts/matrix-stack/ci/well-known-synapse-values.yaml b/charts/matrix-stack/ci/well-known-synapse-values.yaml index 2281903c..132dda48 100644 --- a/charts/matrix-stack/ci/well-known-synapse-values.yaml +++ b/charts/matrix-stack/ci/well-known-synapse-values.yaml @@ -6,12 +6,12 @@ # DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values # initSecrets, postgres, wellKnownDelegation don't have any required properties to be set and defaults to enabled -elementCall: - enabled: false elementWeb: enabled: false matrixAuthenticationService: enabled: false +matrixRTC: + enabled: false serverName: ess.localhost synapse: ingress: diff --git a/charts/matrix-stack/configs/element-call/sfu/config.yaml.tpl b/charts/matrix-stack/configs/matrix-rtc/sfu/config.yaml.tpl similarity index 94% rename from charts/matrix-stack/configs/element-call/sfu/config.yaml.tpl rename to charts/matrix-stack/configs/matrix-rtc/sfu/config.yaml.tpl index baafdcef..4a728b12 100644 --- a/charts/matrix-stack/configs/element-call/sfu/config.yaml.tpl +++ b/charts/matrix-stack/configs/matrix-rtc/sfu/config.yaml.tpl @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only */ -}} {{- $root := .root -}} -{{- with required "element-call/sfu/config.yaml.tpl missing context" .context -}} +{{- with required "matrix-rtc/sfu/config.yaml.tpl missing context" .context -}} port: 7880 # WebRTC configuration diff --git a/charts/matrix-stack/source/element-call.json b/charts/matrix-stack/source/matrix-rtc.json similarity index 99% rename from charts/matrix-stack/source/element-call.json rename to charts/matrix-stack/source/matrix-rtc.json index d0649633..e351d528 100644 --- a/charts/matrix-stack/source/element-call.json +++ b/charts/matrix-stack/source/matrix-rtc.json @@ -1,5 +1,5 @@ { - "$id": "file://element-call", + "$id": "file://matrix-rtc", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { diff --git a/charts/matrix-stack/source/element-call.yaml.j2 b/charts/matrix-stack/source/matrix-rtc.yaml.j2 similarity index 100% rename from charts/matrix-stack/source/element-call.yaml.j2 rename to charts/matrix-stack/source/matrix-rtc.yaml.j2 diff --git a/charts/matrix-stack/source/values.schema.json b/charts/matrix-stack/source/values.schema.json index acd44121..d50248b0 100644 --- a/charts/matrix-stack/source/values.schema.json +++ b/charts/matrix-stack/source/values.schema.json @@ -54,8 +54,8 @@ "initSecrets": { "$ref": "file://init-secrets.json" }, - "elementCall": { - "$ref": "file://element-call.json" + "matrixRTC": { + "$ref": "file://matrix-rtc.json" }, "elementWeb": { "$ref": "file://element-web.json" diff --git a/charts/matrix-stack/source/values.yaml.j2 b/charts/matrix-stack/source/values.yaml.j2 index c95edd0e..50e61dbc 100644 --- a/charts/matrix-stack/source/values.yaml.j2 +++ b/charts/matrix-stack/source/values.yaml.j2 @@ -13,9 +13,9 @@ initSecrets: {% macro initSecrestValues() %}{% include 'init-secrets.yaml.j2'%}{% endmacro %} {{- initSecrestValues() | trim | indent(2) }} -elementCall: - {% macro elementCallValues() %}{% include 'element-call.yaml.j2'%}{% endmacro %} - {{- elementCallValues() | trim | indent(2) }} +matrixRTC: + {% macro matrixRTCValues() %}{% include 'matrix-rtc.yaml.j2'%}{% endmacro %} + {{- matrixRTCValues() | trim | indent(2) }} elementWeb: {% macro elementWebValues() %}{% include 'element-web.yaml.j2'%}{% endmacro %} diff --git a/charts/matrix-stack/templates/init-secrets/_helpers.tpl b/charts/matrix-stack/templates/init-secrets/_helpers.tpl index 950ca5bd..fcb48fbf 100644 --- a/charts/matrix-stack/templates/init-secrets/_helpers.tpl +++ b/charts/matrix-stack/templates/init-secrets/_helpers.tpl @@ -40,7 +40,7 @@ app.kubernetes.io/version: {{ $root.Values.matrixTools.image.tag }} {{- define "element-io.init-secrets.generated-secrets" -}} {{- $root := .root -}} {{- include "element-io.init-secrets.postgres-generated-secrets" (dict "root" $root) -}} -{{- with $root.Values.elementCall }} +{{- with $root.Values.matrixRTC }} {{- if .enabled -}} {{- if not .livekitKey }} - {{ (printf "%s-generated" $root.Release.Name) }}:ELEMENT_CALL_LIVEKIT_KEY:rand32 diff --git a/charts/matrix-stack/templates/element-call/_helpers.tpl b/charts/matrix-stack/templates/matrix-rtc/_helpers.tpl similarity index 66% rename from charts/matrix-stack/templates/element-call/_helpers.tpl rename to charts/matrix-stack/templates/matrix-rtc/_helpers.tpl index e123bd31..4cd94709 100644 --- a/charts/matrix-stack/templates/element-call/_helpers.tpl +++ b/charts/matrix-stack/templates/matrix-rtc/_helpers.tpl @@ -4,40 +4,40 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- define "element-io.element-call-sfu-jwt.labels" -}} +{{- define "element-io.matrix-rtc-sfu-jwt.labels" -}} {{- $root := .root -}} -{{- with required "element-io.element-call.labels missing context" .context -}} +{{- with required "element-io.matrix-rtc.labels missing context" .context -}} {{ include "element-io.ess-library.labels.common" (dict "root" $root "context" .labels) }} app.kubernetes.io/component: matrix-stack-sfu-jwt -app.kubernetes.io/name: element-call-sfu-jwt -app.kubernetes.io/instance: {{ $root.Release.Name }}-element-call-sfu-jwt +app.kubernetes.io/name: matrix-rtc-sfu-jwt +app.kubernetes.io/instance: {{ $root.Release.Name }}-matrix-rtc-sfu-jwt app.kubernetes.io/version: {{ .image.tag }} {{- end }} {{- end }} -{{- define "element-io.element-call-sfu.labels" -}} +{{- define "element-io.matrix-rtc-sfu.labels" -}} {{- $root := .root -}} -{{- with required "element-io.element-call.labels missing context" .context -}} +{{- with required "element-io.matrix-rtc.labels missing context" .context -}} {{ include "element-io.ess-library.labels.common" (dict "root" $root "context" .labels) }} app.kubernetes.io/component: matrix-stack-rtc -app.kubernetes.io/name: element-call-sfu -app.kubernetes.io/instance: {{ $root.Release.Name }}-element-call-sfu +app.kubernetes.io/name: matrix-rtc-sfu +app.kubernetes.io/instance: {{ $root.Release.Name }}-matrix-rtc-sfu app.kubernetes.io/version: {{ .image.tag }} {{- end }} {{- end }} -{{- define "element-io.element-call-sfu-rtc.labels" -}} +{{- define "element-io.matrix-rtc-sfu-rtc.labels" -}} {{- $root := .root -}} -{{- with required "element-io.element-call.labels missing context" .context -}} +{{- with required "element-io.matrix-rtc.labels missing context" .context -}} {{ include "element-io.ess-library.labels.common" (dict "root" $root "context" .labels) }} app.kubernetes.io/component: matrix-stack-rtc -app.kubernetes.io/name: element-call-sfu-rtc -app.kubernetes.io/instance: {{ $root.Release.Name }}-element-call-sfu-rtc +app.kubernetes.io/name: matrix-rtc-sfu-rtc +app.kubernetes.io/instance: {{ $root.Release.Name }}-matrix-rtc-sfu-rtc app.kubernetes.io/version: {{ .image.tag }} {{- end }} {{- end }} -{{- define "element-io.element-call-sfu-jwt.env" }} +{{- define "element-io.matrix-rtc-sfu-jwt.env" }} {{- $root := .root -}} {{- with required "element-io.sfu-jwt.env missing context" .context -}} {{- $resultEnv := dict -}} @@ -47,18 +47,18 @@ app.kubernetes.io/version: {{ .image.tag }} {{- $_ := set $resultEnv "LIVEKIT_KEY_FROM_FILE" (printf "/secrets/%s" (include "element-io.ess-library.init-secret-path" ( dict "root" $root "context" ( - dict "secretPath" "elementCall.livekitKey" + dict "secretPath" "matrixRTC.livekitKey" "initSecretKey" "ELEMENT_CALL_LIVEKIT_KEY" - "defaultSecretName" (printf "%s-element-call-sfu-jwt" $root.Release.Name) + "defaultSecretName" (printf "%s-matrix-rtc-sfu-jwt" $root.Release.Name) "defaultSecretKey" "LIVEKIT_KEY" ) ))) }} {{- $_ := set $resultEnv "LIVEKIT_SECRET_FROM_FILE" (printf "/secrets/%s" (include "element-io.ess-library.init-secret-path" ( dict "root" $root "context" ( - dict "secretPath" "elementCall.livekitSecret" + dict "secretPath" "matrixRTC.livekitSecret" "initSecretKey" "ELEMENT_CALL_LIVEKIT_SECRET" - "defaultSecretName" (printf "%s-element-call-sfu-jwt" $root.Release.Name) + "defaultSecretName" (printf "%s-matrix-rtc-sfu-jwt" $root.Release.Name) "defaultSecretKey" "LIVEKIT_SECRET" ) ))) }} @@ -70,7 +70,7 @@ app.kubernetes.io/version: {{ .image.tag }} {{- end -}} {{- end -}} -{{- define "element-io.element-call-sfu.env" }} +{{- define "element-io.matrix-rtc-sfu.env" }} {{- $root := .root -}} {{- with required "element-io.sfu-jwt missing context" .context -}} {{- $resultEnv := dict -}} @@ -84,15 +84,15 @@ app.kubernetes.io/version: {{ .image.tag }} {{- end -}} {{- end -}} -{{- define "element-io.element-call-sfu-jwt.configSecrets" -}} +{{- define "element-io.matrix-rtc-sfu-jwt.configSecrets" -}} {{- $root := .root -}} -{{- with required "element-io.element-call-sfu-jwt.configSecrets missing context" .context -}} +{{- with required "element-io.matrix-rtc-sfu-jwt.configSecrets missing context" .context -}} {{- $configSecrets := list -}} {{- if and $root.Values.initSecrets.enabled (include "element-io.init-secrets.generated-secrets" (dict "root" $root)) }} {{ $configSecrets = append $configSecrets (printf "%s-generated" $root.Release.Name) }} {{- end }} {{- if or .livekitKey.value .livekitSecret.value -}} -{{ $configSecrets = append $configSecrets (printf "%s-element-call-sfu-jwt" $root.Release.Name) }} +{{ $configSecrets = append $configSecrets (printf "%s-matrix-rtc-sfu-jwt" $root.Release.Name) }} {{- end -}} {{- with .livekitKey.secret -}} {{ $configSecrets = append $configSecrets (tpl . $root) }} diff --git a/charts/matrix-stack/templates/element-call/ingress.yaml b/charts/matrix-stack/templates/matrix-rtc/ingress.yaml similarity index 69% rename from charts/matrix-stack/templates/element-call/ingress.yaml rename to charts/matrix-stack/templates/matrix-rtc/ingress.yaml index 25c015a2..c33481d3 100644 --- a/charts/matrix-stack/templates/element-call/ingress.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/ingress.yaml @@ -3,18 +3,18 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with .Values.elementCall -}} +{{- with .Values.matrixRTC -}} {{- if .enabled -}} apiVersion: networking.k8s.io/v1 kind: Ingress metadata: {{- include "element-io.ess-library.ingress.annotations" (dict "root" $ "context" (dict "ingress" .ingress)) | nindent 2 }} labels: - {{- include "element-io.element-call-sfu-jwt.labels" (dict "root" $ "context" .) | nindent 4 }} - name: {{ $.Release.Name }}-element-call-sfu-jwt + {{- include "element-io.matrix-rtc-sfu-jwt.labels" (dict "root" $ "context" .) | nindent 4 }} + name: {{ $.Release.Name }}-matrix-rtc-sfu-jwt namespace: {{ $.Release.Namespace }} spec: -{{- include "element-io.ess-library.ingress.tls" (dict "root" $ "context" (dict "ingress" .ingress "ingressName" "element-call-sfu-jwt")) | nindent 2 }} +{{- include "element-io.ess-library.ingress.tls" (dict "root" $ "context" (dict "ingress" .ingress "ingressName" "matrix-rtc-sfu-jwt")) | nindent 2 }} {{- include "element-io.ess-library.ingress.className" (dict "root" $ "context" .ingress.className) | nindent 2 }} rules: - host: {{ (tpl .ingress.host $) | quote }} @@ -24,7 +24,7 @@ spec: pathType: Prefix backend: service: - name: "{{ $.Release.Name }}-element-call-sfu-jwt" + name: "{{ $.Release.Name }}-matrix-rtc-sfu-jwt" port: name: http {{ if .sfu.enabled }} @@ -32,7 +32,7 @@ spec: pathType: Prefix backend: service: - name: "{{ $.Release.Name }}-element-call-sfu" + name: "{{ $.Release.Name }}-matrix-rtc-sfu" port: number: 7880 {{- end }} diff --git a/charts/matrix-stack/templates/element-call/sfu_configmap.yaml b/charts/matrix-stack/templates/matrix-rtc/sfu_configmap.yaml similarity index 55% rename from charts/matrix-stack/templates/element-call/sfu_configmap.yaml rename to charts/matrix-stack/templates/matrix-rtc/sfu_configmap.yaml index a276a5a6..cce734ff 100644 --- a/charts/matrix-stack/templates/element-call/sfu_configmap.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/sfu_configmap.yaml @@ -4,7 +4,7 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with $.Values.elementCall -}} +{{- with $.Values.matrixRTC -}} {{- if .enabled -}} {{- with .sfu -}} {{- if .enabled -}} @@ -12,12 +12,12 @@ apiVersion: v1 kind: ConfigMap metadata: labels: - {{- include "element-io.element-call-sfu.labels" (dict "root" $ "context" .) | nindent 4 }} - name: {{ $.Release.Name }}-element-call-sfu + {{- include "element-io.matrix-rtc-sfu.labels" (dict "root" $ "context" .) | nindent 4 }} + name: {{ $.Release.Name }}-matrix-rtc-sfu namespace: {{ $.Release.Namespace }} data: config.yaml: | - {{- tpl ($.Files.Get "configs/element-call/sfu/config.yaml.tpl") (dict "root" $ "context" .) | nindent 4 }} + {{- tpl ($.Files.Get "configs/matrix-rtc/sfu/config.yaml.tpl") (dict "root" $ "context" .) | nindent 4 }} keys.yaml: | ${LIVEKIT_KEY}: ${LIVEKIT_SECRET} {{- end -}} diff --git a/charts/matrix-stack/templates/element-call/sfu_deployment.yaml b/charts/matrix-stack/templates/matrix-rtc/sfu_deployment.yaml similarity index 78% rename from charts/matrix-stack/templates/element-call/sfu_deployment.yaml rename to charts/matrix-stack/templates/matrix-rtc/sfu_deployment.yaml index 03069b76..190a5e9b 100644 --- a/charts/matrix-stack/templates/element-call/sfu_deployment.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/sfu_deployment.yaml @@ -4,7 +4,7 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with $.Values.elementCall -}} +{{- with $.Values.matrixRTC -}} {{- if .enabled -}} {{- with .sfu -}} {{- if .enabled -}} @@ -16,14 +16,14 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} labels: - {{- include "element-io.element-call-sfu.labels" (dict "root" $ "context" .) | nindent 4 }} - name: {{ $.Release.Name }}-element-call-sfu + {{- include "element-io.matrix-rtc-sfu.labels" (dict "root" $ "context" .) | nindent 4 }} + name: {{ $.Release.Name }}-matrix-rtc-sfu namespace: {{ $.Release.Namespace }} spec: replicas: 1 selector: matchLabels: - app.kubernetes.io/instance: {{ $.Release.Name }}-element-call-sfu + app.kubernetes.io/instance: {{ $.Release.Name }}-matrix-rtc-sfu strategy: type: RollingUpdate rollingUpdate: @@ -32,7 +32,7 @@ spec: template: metadata: labels: - {{- include "element-io.element-call-sfu.labels" (dict "root" $ "context" .) | nindent 8 }} + {{- include "element-io.matrix-rtc-sfu.labels" (dict "root" $ "context" .) | nindent 8 }} {{- with .annotations }} annotations: {{- toYaml . | nindent 8 }} @@ -42,7 +42,7 @@ spec: hostAliases: {{- tpl (toYaml . | nindent 8) $ }} {{- end }} -{{- include "element-io.ess-library.pods.commonSpec" (dict "root" $ "context" (dict "componentValues" . "key" "element-call-sfu" "deployment" true "usesMatrixTools" true)) | nindent 6 }} +{{- include "element-io.ess-library.pods.commonSpec" (dict "root" $ "context" (dict "componentValues" . "key" "matrix-rtc-sfu" "deployment" true "usesMatrixTools" true)) | nindent 6 }} initContainers: - name: render-config {{- with $.Values.matrixTools.image -}} @@ -50,7 +50,7 @@ spec: image: "{{ .registry }}/{{ .repository }}@{{ .digest }}" imagePullPolicy: {{ .pullPolicy | default "IfNotPresent" }} {{- else }} - image: "{{ .registry }}/{{ .repository }}:{{ required "synapse.image.tag is required if no digest" .tag }}" + image: "{{ .registry }}/{{ .repository }}:{{ required "matrixTools.image.tag is required if no digest" .tag }}" imagePullPolicy: {{ .pullPolicy | default "Always" }} {{- end }} {{- end }} @@ -59,16 +59,16 @@ spec: {{- toYaml . | nindent 10 }} {{- end }} env: - {{- (include "element-io.element-call-sfu.env" (dict "root" $ "context" .)) | nindent 8 }} + {{- (include "element-io.matrix-rtc-sfu.env" (dict "root" $ "context" .)) | nindent 8 }} - name: "LIVEKIT_KEY" value: >- {{ printf "{{ readfile \"/secrets/%s\" }}" ( include "element-io.ess-library.init-secret-path" ( dict "root" $ "context" (dict - "secretPath" "elementCall.livekitKey" + "secretPath" "matrixRTC.livekitKey" "initSecretKey" "ELEMENT_CALL_LIVEKIT_KEY" - "defaultSecretName" (printf "%s-element-call-sfu-jwt" $.Release.Name) + "defaultSecretName" (printf "%s-matrix-rtc-sfu-jwt" $.Release.Name) "defaultSecretKey" "LIVEKIT_KEY" ) ) @@ -80,9 +80,9 @@ spec: (include "element-io.ess-library.init-secret-path" ( dict "root" $ "context" (dict - "secretPath" "elementCall.livekitSecret" + "secretPath" "matrixRTC.livekitSecret" "initSecretKey" "ELEMENT_CALL_LIVEKIT_SECRET" - "defaultSecretName" (printf "%s-element-call-sfu-jwt" $.Release.Name) + "defaultSecretName" (printf "%s-matrix-rtc-sfu-jwt" $.Release.Name) "defaultSecretKey" "LIVEKIT_SECRET" ) ) @@ -107,7 +107,7 @@ spec: - mountPath: /conf name: rendered-config readOnly: false -{{- range $secret := include "element-io.element-call-sfu-jwt.configSecrets" (dict "root" $ "context" $.Values.elementCall) | fromJsonArray }} +{{- range $secret := include "element-io.matrix-rtc-sfu-jwt.configSecrets" (dict "root" $ "context" $.Values.matrixRTC) | fromJsonArray }} - mountPath: /secrets/{{ tpl $secret $ }} name: "secret-{{ tpl $secret $ }}" readOnly: true @@ -123,7 +123,7 @@ spec: image: "{{ .registry }}/{{ .repository }}@{{ .digest }}" imagePullPolicy: {{ .pullPolicy | default "IfNotPresent" }} {{- else }} - image: "{{ .registry }}/{{ .repository }}:{{ required ".elementCall.image.tag is required if no digest" .tag }}" + image: "{{ .registry }}/{{ .repository }}:{{ required ".matrixRTC.image.tag is required if no digest" .tag }}" imagePullPolicy: {{ .pullPolicy | default "Always" }} {{- end }} {{- end }} @@ -131,7 +131,7 @@ spec: securityContext: {{- toYaml . | nindent 10 }} {{- end }} -{{- with (include "element-io.element-call-sfu.env" (dict "root" $ "context" .)) }} +{{- with (include "element-io.matrix-rtc-sfu.env" (dict "root" $ "context" .)) }} env: {{- . | nindent 10 }} {{- end }} @@ -202,13 +202,13 @@ spec: name: plain-config subPath: config.yaml volumes: -{{- range $secret := include "element-io.element-call-sfu-jwt.configSecrets" (dict "root" $ "context" $.Values.elementCall) | fromJsonArray }} +{{- range $secret := include "element-io.matrix-rtc-sfu-jwt.configSecrets" (dict "root" $ "context" $.Values.matrixRTC) | fromJsonArray }} - secret: secretName: {{ tpl $secret $ }} name: secret-{{ tpl $secret $ }} {{- end }} - configMap: - name: "{{ $.Release.Name }}-element-call-sfu" + name: "{{ $.Release.Name }}-matrix-rtc-sfu" defaultMode: 420 name: plain-config - emptyDir: diff --git a/charts/matrix-stack/templates/element-call/sfu_jwt_deployment.yaml b/charts/matrix-stack/templates/matrix-rtc/sfu_jwt_deployment.yaml similarity index 68% rename from charts/matrix-stack/templates/element-call/sfu_jwt_deployment.yaml rename to charts/matrix-stack/templates/matrix-rtc/sfu_jwt_deployment.yaml index aac26c78..94efb47f 100644 --- a/charts/matrix-stack/templates/element-call/sfu_jwt_deployment.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/sfu_jwt_deployment.yaml @@ -4,7 +4,7 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with $.Values.elementCall -}} +{{- with $.Values.matrixRTC -}} {{- if .enabled -}} apiVersion: apps/v1 kind: Deployment @@ -14,14 +14,14 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} labels: - {{- include "element-io.element-call-sfu-jwt.labels" (dict "root" $ "context" .) | nindent 4 }} - name: {{ $.Release.Name }}-element-call-sfu-jwt + {{- include "element-io.matrix-rtc-sfu-jwt.labels" (dict "root" $ "context" .) | nindent 4 }} + name: {{ $.Release.Name }}-matrix-rtc-sfu-jwt namespace: {{ $.Release.Namespace }} spec: replicas: 1 selector: matchLabels: - app.kubernetes.io/instance: {{ $.Release.Name }}-element-call-sfu-jwt + app.kubernetes.io/instance: {{ $.Release.Name }}-matrix-rtc-sfu-jwt strategy: type: RollingUpdate rollingUpdate: @@ -30,7 +30,7 @@ spec: template: metadata: labels: - {{- include "element-io.element-call-sfu-jwt.labels" (dict "root" $ "context" .) | nindent 8 }} + {{- include "element-io.matrix-rtc-sfu-jwt.labels" (dict "root" $ "context" .) | nindent 8 }} {{- with .annotations }} annotations: {{- toYaml . | nindent 8 }} @@ -40,7 +40,7 @@ spec: hostAliases: {{- tpl (toYaml . | nindent 8) $ }} {{- end }} -{{- include "element-io.ess-library.pods.commonSpec" (dict "root" $ "context" (dict "componentValues" . "key" "element-call-sfu-jwt" "deployment" true)) | nindent 6 }} +{{- include "element-io.ess-library.pods.commonSpec" (dict "root" $ "context" (dict "componentValues" . "key" "matrix-rtc-sfu-jwt" "deployment" true)) | nindent 6 }} containers: - name: sfu-jwt {{- with .image -}} @@ -48,7 +48,7 @@ spec: image: "{{ .registry }}/{{ .repository }}@{{ .digest }}" imagePullPolicy: {{ .pullPolicy | default "IfNotPresent" }} {{- else }} - image: "{{ .registry }}/{{ .repository }}:{{ required ".elementCall.image.tag is required if no digest" .tag }}" + image: "{{ .registry }}/{{ .repository }}:{{ required ".matrixRTC.image.tag is required if no digest" .tag }}" imagePullPolicy: {{ .pullPolicy | default "Always" }} {{- end }} {{- end }} @@ -57,7 +57,7 @@ spec: {{- toYaml . | nindent 10 }} {{- end }} env: - {{- include "element-io.element-call-sfu-jwt.env" (dict "root" $ "context" .) | nindent 8 }} + {{- include "element-io.matrix-rtc-sfu-jwt.env" (dict "root" $ "context" .) | nindent 8 }} ports: - containerPort: 8080 name: http @@ -79,13 +79,13 @@ spec: {{- toYaml . | nindent 10 }} {{- end }} volumeMounts: -{{- range $secret := include "element-io.element-call-sfu-jwt.configSecrets" (dict "root" $ "context" $.Values.elementCall) | fromJsonArray }} +{{- range $secret := include "element-io.matrix-rtc-sfu-jwt.configSecrets" (dict "root" $ "context" $.Values.matrixRTC) | fromJsonArray }} - mountPath: /secrets/{{ tpl $secret $ }} name: "secret-{{ tpl $secret $ }}" readOnly: true {{- end }} volumes: -{{- range $secret := include "element-io.element-call-sfu-jwt.configSecrets" (dict "root" $ "context" $.Values.elementCall) | fromJsonArray }} +{{- range $secret := include "element-io.matrix-rtc-sfu-jwt.configSecrets" (dict "root" $ "context" $.Values.matrixRTC) | fromJsonArray }} - secret: secretName: {{ tpl $secret $ }} name: secret-{{ tpl $secret $ }} diff --git a/charts/matrix-stack/templates/element-call/sfu_jwt_secret.yaml b/charts/matrix-stack/templates/matrix-rtc/sfu_jwt_secret.yaml similarity index 61% rename from charts/matrix-stack/templates/element-call/sfu_jwt_secret.yaml rename to charts/matrix-stack/templates/matrix-rtc/sfu_jwt_secret.yaml index 9981e15f..6374cb34 100644 --- a/charts/matrix-stack/templates/element-call/sfu_jwt_secret.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/sfu_jwt_secret.yaml @@ -4,25 +4,25 @@ Copyright 2025 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with $.Values.elementCall -}} +{{- with $.Values.matrixRTC -}} {{- if .enabled -}} apiVersion: v1 kind: Secret metadata: - name: {{ $.Release.Name }}-element-call-sfu-jwt + name: {{ $.Release.Name }}-matrix-rtc-sfu-jwt namespace: {{ $.Release.Namespace }} labels: - {{- include "element-io.element-call-sfu-jwt.labels" (dict "root" $ "context" .) | nindent 4 }} + {{- include "element-io.matrix-rtc-sfu-jwt.labels" (dict "root" $ "context" .) | nindent 4 }} type: Opaque data: {{- with .livekitKey }} -{{- include "element-io.ess-library.check-credential" (dict "root" $ "context" (dict "secretPath" "elementCall.livekitKey" "initIfAbsent" true)) }} +{{- include "element-io.ess-library.check-credential" (dict "root" $ "context" (dict "secretPath" "matrixRTC.livekitKey" "initIfAbsent" true)) }} {{- with .value }} LIVEKIT_KEY: {{ . | b64enc }} {{- end }} {{- end }} {{- with .livekitSecret }} -{{- include "element-io.ess-library.check-credential" (dict "root" $ "context" (dict "secretPath" "elementCall.livekitSecret" "initIfAbsent" true)) }} +{{- include "element-io.ess-library.check-credential" (dict "root" $ "context" (dict "secretPath" "matrixRTC.livekitSecret" "initIfAbsent" true)) }} {{- with .value }} LIVEKIT_SECRET: {{ . | b64enc }} {{- end -}} diff --git a/charts/matrix-stack/templates/element-call/sfu_jwt_service.yaml b/charts/matrix-stack/templates/matrix-rtc/sfu_jwt_service.yaml similarity index 54% rename from charts/matrix-stack/templates/element-call/sfu_jwt_service.yaml rename to charts/matrix-stack/templates/matrix-rtc/sfu_jwt_service.yaml index deb854ec..e727a1ac 100644 --- a/charts/matrix-stack/templates/element-call/sfu_jwt_service.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/sfu_jwt_service.yaml @@ -4,14 +4,14 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with $.Values.elementCall -}} +{{- with $.Values.matrixRTC -}} {{- if .enabled -}} apiVersion: v1 kind: Service metadata: labels: - {{- include "element-io.element-call-sfu-jwt.labels" (dict "root" $ "context" .) | nindent 4 }} - name: {{ $.Release.Name }}-element-call-sfu-jwt + {{- include "element-io.matrix-rtc-sfu-jwt.labels" (dict "root" $ "context" .) | nindent 4 }} + name: {{ $.Release.Name }}-matrix-rtc-sfu-jwt namespace: {{ $.Release.Namespace }} spec: type: ClusterIP @@ -20,6 +20,6 @@ spec: port: 8080 targetPort: http selector: - app.kubernetes.io/instance: "{{ $.Release.Name }}-element-call-sfu-jwt" + app.kubernetes.io/instance: "{{ $.Release.Name }}-matrix-rtc-sfu-jwt" {{- end -}} {{- end -}} diff --git a/charts/matrix-stack/templates/element-call/sfu_jwt_service_monitor.yaml b/charts/matrix-stack/templates/matrix-rtc/sfu_jwt_service_monitor.yaml similarity index 68% rename from charts/matrix-stack/templates/element-call/sfu_jwt_service_monitor.yaml rename to charts/matrix-stack/templates/matrix-rtc/sfu_jwt_service_monitor.yaml index 56679949..e03a2aca 100644 --- a/charts/matrix-stack/templates/element-call/sfu_jwt_service_monitor.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/sfu_jwt_service_monitor.yaml @@ -4,7 +4,7 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with $.Values.elementCall -}} +{{- with $.Values.matrixRTC -}} {{- if .enabled -}} {{- if $.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/ServiceMonitor" }} {{- if .serviceMonitors.enabled }} @@ -12,8 +12,8 @@ apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: labels: - {{- include "element-io.element-call-sfu-jwt.labels" (dict "root" $ "context" .) | nindent 4 }} - name: {{ $.Release.Name }}-element-call-sfu-jwt + {{- include "element-io.matrix-rtc-sfu-jwt.labels" (dict "root" $ "context" .) | nindent 4 }} + name: {{ $.Release.Name }}-matrix-rtc-sfu-jwt namespace: {{ $.Release.Namespace }} spec: endpoints: @@ -23,7 +23,7 @@ spec: matchLabels: app.kubernetes.io/part-of: matrix-stack app.kubernetes.io/component: matrix-stack-sfu-jwt - app.kubernetes.io/instance: {{ $.Release.Name }}-element-call-sfu-jwt + app.kubernetes.io/instance: {{ $.Release.Name }}-matrix-rtc-sfu-jwt {{- end }} {{- end }} {{- end -}} diff --git a/charts/matrix-stack/templates/element-call/sfu_jwt_serviceaccount.yaml b/charts/matrix-stack/templates/matrix-rtc/sfu_jwt_serviceaccount.yaml similarity index 64% rename from charts/matrix-stack/templates/element-call/sfu_jwt_serviceaccount.yaml rename to charts/matrix-stack/templates/matrix-rtc/sfu_jwt_serviceaccount.yaml index ab29f005..f184f580 100644 --- a/charts/matrix-stack/templates/element-call/sfu_jwt_serviceaccount.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/sfu_jwt_serviceaccount.yaml @@ -4,8 +4,8 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with $.Values.elementCall -}} +{{- with $.Values.matrixRTC -}} {{- if .enabled -}} -{{- include "element-io.ess-library.serviceAccount" (dict "root" $ "context" (dict "componentValues" . "key" "element-call-sfu-jwt")) }} +{{- include "element-io.ess-library.serviceAccount" (dict "root" $ "context" (dict "componentValues" . "key" "matrix-rtc-sfu-jwt")) }} {{- end -}} {{- end -}} diff --git a/charts/matrix-stack/templates/element-call/sfu_rtc_tcp_service.yaml b/charts/matrix-stack/templates/matrix-rtc/sfu_rtc_tcp_service.yaml similarity index 70% rename from charts/matrix-stack/templates/element-call/sfu_rtc_tcp_service.yaml rename to charts/matrix-stack/templates/matrix-rtc/sfu_rtc_tcp_service.yaml index c433b706..2a3479cd 100644 --- a/charts/matrix-stack/templates/element-call/sfu_rtc_tcp_service.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/sfu_rtc_tcp_service.yaml @@ -4,7 +4,7 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with $.Values.elementCall -}} +{{- with $.Values.matrixRTC -}} {{- if .enabled -}} {{- with .sfu -}} {{- if and .enabled .exposedServices.rtcTcp.enabled (eq .exposedServices.rtcTcp.portType "NodePort") -}} @@ -12,8 +12,8 @@ apiVersion: v1 kind: Service metadata: labels: - {{- include "element-io.element-call-sfu-rtc.labels" (dict "root" $ "context" .) | nindent 4 }} - name: {{ $.Release.Name }}-element-call-sfu-tcp + {{- include "element-io.matrix-rtc-sfu-rtc.labels" (dict "root" $ "context" .) | nindent 4 }} + name: {{ $.Release.Name }}-matrix-rtc-sfu-tcp namespace: {{ $.Release.Namespace }} spec: type: NodePort @@ -25,7 +25,7 @@ spec: targetPort: {{ .exposedServices.rtcTcp.port }} nodePort: {{ .exposedServices.rtcTcp.port }} selector: - app.kubernetes.io/instance: "{{ $.Release.Name }}-element-call-sfu" + app.kubernetes.io/instance: "{{ $.Release.Name }}-matrix-rtc-sfu" {{- end }} {{- end }} {{- end }} diff --git a/charts/matrix-stack/templates/element-call/sfu_rtc_udp_muxer_service.yaml b/charts/matrix-stack/templates/matrix-rtc/sfu_rtc_udp_muxer_service.yaml similarity index 71% rename from charts/matrix-stack/templates/element-call/sfu_rtc_udp_muxer_service.yaml rename to charts/matrix-stack/templates/matrix-rtc/sfu_rtc_udp_muxer_service.yaml index f8ca8b10..838114ed 100644 --- a/charts/matrix-stack/templates/element-call/sfu_rtc_udp_muxer_service.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/sfu_rtc_udp_muxer_service.yaml @@ -4,7 +4,7 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with $.Values.elementCall -}} +{{- with $.Values.matrixRTC -}} {{- if .enabled -}} {{- with .sfu -}} {{- if and .enabled .exposedServices.rtcMuxedUdp.enabled (eq .exposedServices.rtcMuxedUdp.portType "NodePort") -}} @@ -12,8 +12,8 @@ apiVersion: v1 kind: Service metadata: labels: - {{- include "element-io.element-call-sfu-rtc.labels" (dict "root" $ "context" .) | nindent 4 }} - name: {{ $.Release.Name }}-element-call-sfu-muxed-udp + {{- include "element-io.matrix-rtc-sfu-rtc.labels" (dict "root" $ "context" .) | nindent 4 }} + name: {{ $.Release.Name }}-matrix-rtc-sfu-muxed-udp namespace: {{ $.Release.Namespace }} spec: type: NodePort @@ -25,7 +25,7 @@ spec: targetPort: {{ .exposedServices.rtcMuxedUdp.port }} nodePort: {{ .exposedServices.rtcMuxedUdp.port }} selector: - app.kubernetes.io/instance: "{{ $.Release.Name }}-element-call-sfu" + app.kubernetes.io/instance: "{{ $.Release.Name }}-matrix-rtc-sfu" {{- end }} {{- end }} {{- end }} diff --git a/charts/matrix-stack/templates/element-call/sfu_rtc_udp_range_service.yaml b/charts/matrix-stack/templates/matrix-rtc/sfu_rtc_udp_range_service.yaml similarity index 72% rename from charts/matrix-stack/templates/element-call/sfu_rtc_udp_range_service.yaml rename to charts/matrix-stack/templates/matrix-rtc/sfu_rtc_udp_range_service.yaml index 6558e921..3030675f 100644 --- a/charts/matrix-stack/templates/element-call/sfu_rtc_udp_range_service.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/sfu_rtc_udp_range_service.yaml @@ -4,7 +4,7 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with $.Values.elementCall -}} +{{- with $.Values.matrixRTC -}} {{- if .enabled -}} {{- with .sfu -}} {{- if and .enabled .exposedServices.rtcUdp.enabled (eq .exposedServices.rtcUdp.portType "NodePort") -}} @@ -12,8 +12,8 @@ apiVersion: v1 kind: Service metadata: labels: - {{- include "element-io.element-call-sfu-rtc.labels" (dict "root" $ "context" .) | nindent 4 }} - name: {{ $.Release.Name }}-element-call-sfu-udp-range + {{- include "element-io.matrix-rtc-sfu-rtc.labels" (dict "root" $ "context" .) | nindent 4 }} + name: {{ $.Release.Name }}-matrix-rtc-sfu-udp-range namespace: {{ $.Release.Namespace }} spec: type: NodePort @@ -29,7 +29,7 @@ spec: {{- end }} {{- end }} selector: - app.kubernetes.io/instance: "{{ $.Release.Name }}-element-call-sfu" + app.kubernetes.io/instance: "{{ $.Release.Name }}-matrix-rtc-sfu" {{- end }} {{- end }} {{- end }} diff --git a/charts/matrix-stack/templates/element-call/sfu_service.yaml b/charts/matrix-stack/templates/matrix-rtc/sfu_service.yaml similarity index 60% rename from charts/matrix-stack/templates/element-call/sfu_service.yaml rename to charts/matrix-stack/templates/matrix-rtc/sfu_service.yaml index 7c5022da..477fa44d 100644 --- a/charts/matrix-stack/templates/element-call/sfu_service.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/sfu_service.yaml @@ -4,7 +4,7 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with $.Values.elementCall -}} +{{- with $.Values.matrixRTC -}} {{- if .enabled -}} {{- with .sfu -}} {{- if .enabled -}} @@ -12,8 +12,8 @@ apiVersion: v1 kind: Service metadata: labels: - {{- include "element-io.element-call-sfu.labels" (dict "root" $ "context" .) | nindent 4 }} - name: {{ $.Release.Name }}-element-call-sfu + {{- include "element-io.matrix-rtc-sfu.labels" (dict "root" $ "context" .) | nindent 4 }} + name: {{ $.Release.Name }}-matrix-rtc-sfu namespace: {{ $.Release.Namespace }} spec: type: ClusterIP @@ -22,7 +22,7 @@ spec: port: 7880 targetPort: http selector: - app.kubernetes.io/instance: "{{ $.Release.Name }}-element-call-sfu" + app.kubernetes.io/instance: "{{ $.Release.Name }}-matrix-rtc-sfu" {{- end -}} {{- end -}} {{- end -}} diff --git a/charts/matrix-stack/templates/element-call/sfu_service_monitor.yaml b/charts/matrix-stack/templates/matrix-rtc/sfu_service_monitor.yaml similarity index 71% rename from charts/matrix-stack/templates/element-call/sfu_service_monitor.yaml rename to charts/matrix-stack/templates/matrix-rtc/sfu_service_monitor.yaml index 23890393..d2d43cc6 100644 --- a/charts/matrix-stack/templates/element-call/sfu_service_monitor.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/sfu_service_monitor.yaml @@ -4,7 +4,7 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with $.Values.elementCall -}} +{{- with $.Values.matrixRTC -}} {{- if .enabled -}} {{- with .sfu -}} {{- if .enabled -}} @@ -14,8 +14,8 @@ apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: labels: - {{- include "element-io.element-call-sfu.labels" (dict "root" $ "context" .) | nindent 4 }} - name: {{ $.Release.Name }}-element-call-sfu + {{- include "element-io.matrix-rtc-sfu.labels" (dict "root" $ "context" .) | nindent 4 }} + name: {{ $.Release.Name }}-matrix-rtc-sfu namespace: {{ $.Release.Namespace }} spec: endpoints: @@ -25,7 +25,7 @@ spec: matchLabels: app.kubernetes.io/part-of: matrix-stack app.kubernetes.io/component: matrix-stack-rtc - app.kubernetes.io/instance: {{ $.Release.Name }}-element-call-sfu + app.kubernetes.io/instance: {{ $.Release.Name }}-matrix-rtc-sfu {{- end }} {{- end }} {{- end -}} diff --git a/charts/matrix-stack/templates/element-call/sfu_serviceaccount.yaml b/charts/matrix-stack/templates/matrix-rtc/sfu_serviceaccount.yaml similarity index 71% rename from charts/matrix-stack/templates/element-call/sfu_serviceaccount.yaml rename to charts/matrix-stack/templates/matrix-rtc/sfu_serviceaccount.yaml index 98382716..5e01db6f 100644 --- a/charts/matrix-stack/templates/element-call/sfu_serviceaccount.yaml +++ b/charts/matrix-stack/templates/matrix-rtc/sfu_serviceaccount.yaml @@ -4,11 +4,11 @@ Copyright 2024 New Vector Ltd SPDX-License-Identifier: AGPL-3.0-only */ -}} -{{- with $.Values.elementCall -}} +{{- with $.Values.matrixRTC -}} {{- if .enabled -}} {{- with .sfu -}} {{- if .enabled -}} -{{- include "element-io.ess-library.serviceAccount" (dict "root" $ "context" (dict "componentValues" . "key" "element-call-sfu")) }} +{{- include "element-io.ess-library.serviceAccount" (dict "root" $ "context" (dict "componentValues" . "key" "matrix-rtc-sfu")) }} {{- end -}} {{- end -}} {{- end -}} diff --git a/charts/matrix-stack/templates/well-known/_helpers.tpl b/charts/matrix-stack/templates/well-known/_helpers.tpl index 7bb125da..26ec2a63 100644 --- a/charts/matrix-stack/templates/well-known/_helpers.tpl +++ b/charts/matrix-stack/templates/well-known/_helpers.tpl @@ -47,8 +47,8 @@ k8s.element.io/target-instance: {{ $root.Release.Name }}-haproxy {{- $_ := set $config "org.matrix.msc2965.authentication" $msc2965 -}} {{- end -}} {{- end -}} -{{- if $root.Values.elementCall.enabled -}} -{{- $_ := set $config "org.matrix.msc4143.rtc_foci" (list (dict "type" "livekit" "livekit_service_url" (printf "https://%s" $root.Values.elementCall.ingress.host))) -}} +{{- if $root.Values.matrixRTC.enabled -}} +{{- $_ := set $config "org.matrix.msc4143.rtc_foci" (list (dict "type" "livekit" "livekit_service_url" (printf "https://%s" $root.Values.matrixRTC.ingress.host))) -}} {{- end -}} {{- $additional := .additional.client | fromJson -}} {{- tpl (toPrettyJson (merge $config $additional)) $root -}} diff --git a/charts/matrix-stack/values.schema.json b/charts/matrix-stack/values.schema.json index a47a8f97..3d819db9 100644 --- a/charts/matrix-stack/values.schema.json +++ b/charts/matrix-stack/values.schema.json @@ -498,8 +498,8 @@ }, "additionalProperties": false }, - "elementCall": { - "$id": "file://element-call", + "matrixRTC": { + "$id": "file://matrix-rtc", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { @@ -614,6 +614,9 @@ "className": { "type": "string" }, + "tlsEnabled": { + "type": "boolean" + }, "tlsSecret": { "type": "string" }, diff --git a/charts/matrix-stack/values.yaml b/charts/matrix-stack/values.yaml index 939daebd..a9ab54e8 100644 --- a/charts/matrix-stack/values.yaml +++ b/charts/matrix-stack/values.yaml @@ -231,7 +231,7 @@ initSecrets: tolerations: [] -elementCall: +matrixRTC: enabled: true ## The API key for the LiveKit SFU. ## This secret is optional, and will be generated by the `initSecrets` job @@ -268,6 +268,9 @@ elementCall: ## What Ingress Class Name that should be used for this Ingress # className: + ## Disable TLS configuration by setting it to false + tlsEnabled: true + ## The name of the Secret containing the TLS certificate and the key that should be used for this Ingress # tlsSecret: @@ -293,7 +296,7 @@ elementCall: ## The tag of the container image to use. ## Defaults to the Chart's appVersion if not set - tag: "0.2.2" + tag: "0.2.3" ## Container digest to use. Used to pull the image instead of the image tag / Chart appVersion if set # digest: diff --git a/newsfragments/343.added.md b/newsfragments/343.added.md index 3ff6f947..9be3ab46 100644 --- a/newsfragments/343.added.md +++ b/newsfragments/343.added.md @@ -1 +1 @@ -Add elementCall backend deployment. +Add matrixRTC backend deployment. diff --git a/scripts/assemble_ci_values_files_from_fragments.sh b/scripts/assemble_ci_values_files_from_fragments.sh index d909834f..a09cf35e 100755 --- a/scripts/assemble_ci_values_files_from_fragments.sh +++ b/scripts/assemble_ci_values_files_from_fragments.sh @@ -36,7 +36,7 @@ for values_file in "$values_file_root"/*-values.yaml; do # Remove any fields with null values so we have a way of removing things yq_command+=" | del(... | select(. == null))" # We could remove enabled: true for all default enabled components by setting enabled: null in their minimal values file, - yq_command+=" | del(.elementCall.enabled | select(.))" + yq_command+=" | del(.matrixRTC.enabled | select(.))" yq_command+=" | del(.elementWeb.enabled | select(.))" yq_command+=" | del(.initSecrets.enabled | select(.))" yq_command+=" | del(.postgres.enabled | select(.))" diff --git a/tests/integration/env/element-call.rc b/tests/integration/env/element-call.rc deleted file mode 100644 index 278f184e..00000000 --- a/tests/integration/env/element-call.rc +++ /dev/null @@ -1,5 +0,0 @@ -# Copyright 2024 New Vector Ltd -# -# SPDX-License-Identifier: AGPL-3.0-only - -export TEST_VALUES_FILE=charts/matrix-stack/ci/pytest-element-call-values.yaml diff --git a/tests/integration/env/matrix-rtc.rc b/tests/integration/env/matrix-rtc.rc new file mode 100644 index 00000000..77089596 --- /dev/null +++ b/tests/integration/env/matrix-rtc.rc @@ -0,0 +1,5 @@ +# Copyright 2024 New Vector Ltd +# +# SPDX-License-Identifier: AGPL-3.0-only + +export TEST_VALUES_FILE=charts/matrix-stack/ci/pytest-matrix-rtc-values.yaml diff --git a/tests/integration/fixtures/helm.py b/tests/integration/fixtures/helm.py index f1ed355b..14487c1b 100644 --- a/tests/integration/fixtures/helm.py +++ b/tests/integration/fixtures/helm.py @@ -44,13 +44,13 @@ async def helm_prerequisites( ), ) - if value_file_has("elementCall.enabled", True): + if value_file_has("matrixRTC.enabled", True): resources.append( kubernetes_tls_secret( - f"{generated_data.release_name}-element-call-tls", + f"{generated_data.release_name}-matrix-rtc-tls", generated_data.ess_namespace, ca, - [f"call.{generated_data.server_name}"], + [f"mrtc.{generated_data.server_name}"], bundled=True, ) ) @@ -158,7 +158,7 @@ async def matrix_stack( ] values["matrixTools"].setdefault("image", {}) values["matrixTools"]["image"] = loaded_matrix_tools - values["elementCall"]["hostAliases"] = [ + values["matrixRTC"]["hostAliases"] = [ { "ip": ingress, "hostnames": [ @@ -168,7 +168,7 @@ async def matrix_stack( ], } ] - values["synapse"]["hostAliases"] = values["elementCall"]["hostAliases"] + values["synapse"]["hostAliases"] = values["matrixRTC"]["hostAliases"] chart = await helm_client.get_chart("charts/matrix-stack") # Install or upgrade a release diff --git a/tests/integration/test_element_call.py b/tests/integration/test_element_call.py index 2c2ad0c7..65bae765 100644 --- a/tests/integration/test_element_call.py +++ b/tests/integration/test_element_call.py @@ -8,15 +8,15 @@ from .fixtures import ESSData from .lib.utils import aiohttp_post_json, value_file_has -@pytest.mark.skipif(value_file_has("elementCall.enabled", False), reason="ElementWeb not deployed") -@pytest.mark.parametrize("users", [("element-call-user",)], indirect=True) +@pytest.mark.skipif(value_file_has("matrixRTC.enabled", False), reason="ElementWeb not deployed") +@pytest.mark.parametrize("users", [("matrix-rtc-user",)], indirect=True) @pytest.mark.asyncio_cooperative async def test_element_call_livekit_jwt(ingress_ready, users, generated_data: ESSData, ssl_context): await ingress_ready("synapse") access_token = users[0] openid_token = await aiohttp_post_json( - f"https://synapse.{generated_data.server_name}/_matrix/client/v3/user/@element-call-user:{generated_data.server_name}/openid/request_token", + f"https://synapse.{generated_data.server_name}/_matrix/client/v3/user/@matrix-rtc-user:{generated_data.server_name}/openid/request_token", {}, {"Authorization": f"Bearer {access_token}"}, ssl_context, @@ -31,14 +31,14 @@ async def test_element_call_livekit_jwt(ingress_ready, users, generated_data: ES "device_id": "something", } - await ingress_ready("element-call-sfu-jwt") + await ingress_ready("matrix-rtc-sfu-jwt") await ingress_ready("well-known") livekit_jwt = await aiohttp_post_json( - f"https://call.{generated_data.server_name}/sfu/get", + f"https://mrtc.{generated_data.server_name}/sfu/get", livekit_jwt_payload, {"Authorization": f"Bearer {access_token}"}, ssl_context, ) - assert livekit_jwt["url"] == f"wss://call.{generated_data.server_name}" + assert livekit_jwt["url"] == f"wss://mrtc.{generated_data.server_name}" assert "jwt" in livekit_jwt diff --git a/tests/integration/test_element_web.py b/tests/integration/test_element_web.py index 3ed8de87..8fa62f0f 100644 --- a/tests/integration/test_element_web.py +++ b/tests/integration/test_element_web.py @@ -15,5 +15,5 @@ async def test_element_web_can_access_config_json(ingress_ready, generated_data: json_content = await aiottp_get_json(f"https://element.{generated_data.server_name}/config.json", ssl_context) assert "element_call" in json_content - assert json_content["element_call"]["url"] == f"https://call.{generated_data.server_name}" + assert json_content["element_call"]["url"] == f"https://mrtc.{generated_data.server_name}" assert json_content["element_call"]["use_exclusively"] diff --git a/tests/integration/test_well_known_delegation.py b/tests/integration/test_well_known_delegation.py index 98a0086b..94078525 100644 --- a/tests/integration/test_well_known_delegation.py +++ b/tests/integration/test_well_known_delegation.py @@ -20,9 +20,9 @@ async def test_well_known_files_can_be_accessed( json_content = await aiottp_get_json(f"https://{generated_data.server_name}/.well-known/matrix/client", ssl_context) if value_file_has("synapse.enabled", True): assert "m.homeserver" in json_content - if value_file_has("elementCall.enabled"): + if value_file_has("matrixRTC.enabled"): assert json_content["org.matrix.msc4143.rtc_foci"] == [ - {"type": "livekit", "livekit_service_url": f"https://call.{generated_data.server_name}"} + {"type": "livekit", "livekit_service_url": f"https://mrtc.{generated_data.server_name}"} ] json_content = await aiottp_get_json(f"https://{generated_data.server_name}/.well-known/matrix/server", ssl_context) diff --git a/tests/manifests/__init__.py b/tests/manifests/__init__.py index 598347f2..8f264414 100644 --- a/tests/manifests/__init__.py +++ b/tests/manifests/__init__.py @@ -177,11 +177,11 @@ all_components_details = [ is_shared_component=True, ), ComponentDetails( - name="element-call-sfu-jwt", - value_file_prefix="element-call", - helm_key="elementCall", + name="matrix-rtc-sfu-jwt", + value_file_prefix="matrix-rtc", + helm_key="matrixRTC", sub_components=[ - SubComponentDetails(name="element-call-sfu", helm_key="sfu", has_ingress=False, uses_shared_ingress=True) + SubComponentDetails(name="matrix-rtc-sfu", helm_key="sfu", has_ingress=False, uses_shared_ingress=True) ], shared_component_names=["init-secrets"], ), diff --git a/tests/manifests/test_well_known_delegation.py b/tests/manifests/test_well_known_delegation.py index 8b5adc26..2da88c1f 100644 --- a/tests/manifests/test_well_known_delegation.py +++ b/tests/manifests/test_well_known_delegation.py @@ -32,7 +32,7 @@ async def assert_well_known_files( expected_client = {} expected_client = expected_client | { "org.matrix.msc4143.rtc_foci": [ - {"type": "livekit", "livekit_service_url": "https://livekit-jwt.call.element.io"} + {"type": "livekit", "livekit_service_url": "https://livekit-jwt.mrtc.element.io"} ] } client_config = {"testclientkey": {"testsubket": "testvalue"}}