From e96bf27c55afbe9104b980feba55ad8b3a390f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Goinvic?= Date: Wed, 27 Nov 2024 16:32:16 +0100 Subject: [PATCH 1/2] charts: merge synapse down into matrix-stack --- charts/matrix-stack/Chart.lock | 7 +- charts/matrix-stack/Chart.yaml | 4 - .../ci/nothing-enabled-values.yaml | 3 +- .../ci/pytest-synapse-values.yaml | 86 +- .../synapse-checkov-with-workers-values.yaml} | 0 ...apse-ingress-additional-paths-values.yaml} | 3 + .../ci/synapse-minimal-values.yaml} | 3 + .../ci/synapse-worker-example-values.yaml} | 3 + .../configs/synapse}/haproxy.cfg.tpl | 0 .../synapse/render_config_with_secrets.py | 0 .../ingress_with_additional_paths.json | 0 .../synapse}/sub_schemas/scalable_worker.json | 0 .../synapse}/sub_schemas/single_worker.json | 0 .../synapse_sub_schema_values.yaml.j2 | 0 .../source/synapse/values.schema.json | 274 +++ .../source/synapse/values.yaml.j2 | 110 + charts/matrix-stack/source/values.schema.json | 3 +- charts/matrix-stack/source/values.yaml.j2 | 2 +- .../templates/synapse}/_helpers.tpl | 0 .../templates/synapse}/_synapse_config.tpl | 0 .../templates/synapse}/_synapse_details.tpl | 0 .../templates/synapse}/haproxy_configmap.yaml | 2 +- .../synapse}/haproxy_deployment.yaml | 4 +- .../synapse}/haproxy_service_monitor.yaml | 0 .../synapse}/haproxy_serviceaccount.yaml | 0 .../templates/synapse}/redis_configmap.yaml | 0 .../templates/synapse}/redis_deployment.yaml | 4 +- .../templates/synapse}/redis_service.yaml | 0 .../synapse}/redis_serviceaccount.yaml | 0 .../templates/synapse}/synapse_configmap.yaml | 0 .../synapse}/synapse_http_service.yaml | 0 .../templates/synapse}/synapse_ingress.yaml | 0 .../synapse_persistentvolumeclaim.yaml | 0 .../templates/synapse}/synapse_secret.yaml | 0 .../templates/synapse}/synapse_service.yaml | 0 .../synapse}/synapse_service_monitor.yaml | 0 .../synapse}/synapse_serviceaccount.yaml | 0 .../synapse}/synapse_statefulset.yaml | 8 +- charts/matrix-stack/values.schema.json | 2012 +++++++++++++++- charts/matrix-stack/values.yaml | 1162 +++++---- charts/synapse/.helmignore | 8 - charts/synapse/Chart.lock | 6 - charts/synapse/Chart.yaml | 14 - charts/synapse/source/values.schema.json | 289 --- charts/synapse/source/values.yaml.j2 | 116 - charts/synapse/user_values/.gitkeep | 0 charts/synapse/values.schema.json | 2084 ----------------- charts/synapse/values.yaml | 761 ------ 48 files changed, 3033 insertions(+), 3935 deletions(-) rename charts/{synapse/ci/checkov-with-workers-values.yaml => matrix-stack/ci/synapse-checkov-with-workers-values.yaml} (100%) rename charts/{synapse/ci/ingress-additional-paths-values.yaml => matrix-stack/ci/synapse-ingress-additional-paths-values.yaml} (96%) rename charts/{synapse/ci/minimal-values.yaml => matrix-stack/ci/synapse-minimal-values.yaml} (94%) rename charts/{synapse/ci/worker-example-values.yaml => matrix-stack/ci/synapse-worker-example-values.yaml} (97%) rename charts/{synapse/configs/haproxy => matrix-stack/configs/synapse}/haproxy.cfg.tpl (100%) rename charts/{synapse => matrix-stack}/configs/synapse/render_config_with_secrets.py (100%) rename charts/{synapse/source => matrix-stack/source/synapse}/sub_schemas/ingress_with_additional_paths.json (100%) rename charts/{synapse/source => matrix-stack/source/synapse}/sub_schemas/scalable_worker.json (100%) rename charts/{synapse/source => matrix-stack/source/synapse}/sub_schemas/single_worker.json (100%) rename charts/{synapse/source => matrix-stack/source/synapse}/sub_schemas/synapse_sub_schema_values.yaml.j2 (100%) create mode 100644 charts/matrix-stack/source/synapse/values.schema.json create mode 100644 charts/matrix-stack/source/synapse/values.yaml.j2 rename charts/{synapse/templates => matrix-stack/templates/synapse}/_helpers.tpl (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/_synapse_config.tpl (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/_synapse_details.tpl (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/haproxy_configmap.yaml (96%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/haproxy_deployment.yaml (96%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/haproxy_service_monitor.yaml (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/haproxy_serviceaccount.yaml (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/redis_configmap.yaml (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/redis_deployment.yaml (96%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/redis_service.yaml (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/redis_serviceaccount.yaml (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/synapse_configmap.yaml (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/synapse_http_service.yaml (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/synapse_ingress.yaml (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/synapse_persistentvolumeclaim.yaml (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/synapse_secret.yaml (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/synapse_service.yaml (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/synapse_service_monitor.yaml (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/synapse_serviceaccount.yaml (100%) rename charts/{synapse/templates => matrix-stack/templates/synapse}/synapse_statefulset.yaml (97%) delete mode 100644 charts/synapse/.helmignore delete mode 100644 charts/synapse/Chart.lock delete mode 100644 charts/synapse/Chart.yaml delete mode 100644 charts/synapse/source/values.schema.json delete mode 100644 charts/synapse/source/values.yaml.j2 delete mode 100644 charts/synapse/user_values/.gitkeep delete mode 100644 charts/synapse/values.schema.json delete mode 100644 charts/synapse/values.yaml diff --git a/charts/matrix-stack/Chart.lock b/charts/matrix-stack/Chart.lock index 24c5c63d..034cf286 100644 --- a/charts/matrix-stack/Chart.lock +++ b/charts/matrix-stack/Chart.lock @@ -1,9 +1,6 @@ dependencies: -- name: synapse - repository: file://../synapse - version: 0.0.0-dev - name: ess-library repository: file://../ess-library version: 0.0.0-dev -digest: sha256:ff4fa7d0f7eb859e0c55c36e9a462f03b045e9b2c3dcf0b9315d08bad918d5d8 -generated: "2024-11-27T16:08:11.722897922+01:00" +digest: sha256:1f7a32667f6336fd19d1b6e3a24fd2cb51f3d728bf5ec086d7718c5350352f26 +generated: "2024-11-27T16:30:57.671623029+01:00" diff --git a/charts/matrix-stack/Chart.yaml b/charts/matrix-stack/Chart.yaml index 44841866..034f997f 100644 --- a/charts/matrix-stack/Chart.yaml +++ b/charts/matrix-stack/Chart.yaml @@ -8,10 +8,6 @@ description: A Helm meta-chart for deploying a Matrix Stack from Element type: application version: "0.0.0-dev" dependencies: - - name: "synapse" - version: "0.0.0-dev" - repository: "file://../synapse" - condition: synapse.enabled - name: ess-library repository: file://../ess-library version: 0.0.0-dev diff --git a/charts/matrix-stack/ci/nothing-enabled-values.yaml b/charts/matrix-stack/ci/nothing-enabled-values.yaml index f64e7e58..e2cb2393 100644 --- a/charts/matrix-stack/ci/nothing-enabled-values.yaml +++ b/charts/matrix-stack/ci/nothing-enabled-values.yaml @@ -6,5 +6,4 @@ elementWeb: enabled: false synapse: - synapse: - enabled: false + enabled: false diff --git a/charts/matrix-stack/ci/pytest-synapse-values.yaml b/charts/matrix-stack/ci/pytest-synapse-values.yaml index c6f30289..13a49a0b 100644 --- a/charts/matrix-stack/ci/pytest-synapse-values.yaml +++ b/charts/matrix-stack/ci/pytest-synapse-values.yaml @@ -2,59 +2,59 @@ # # SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +ess: + serverName: ess.localhost + synapse: - ess: - serverName: ess.localhost - synapse: - enabled: true - registrationSharedSecret: - secret: ess-secrets - secretKey: registrationSharedSecret - macaroon: - secret: ess-secrets - secretKey: macaroon - signingKey: - secret: ess-secrets - secretKey: signingKey + enabled: true + registrationSharedSecret: + secret: ess-secrets + secretKey: registrationSharedSecret + macaroon: + secret: ess-secrets + secretKey: macaroon + signingKey: + secret: ess-secrets + secretKey: signingKey - postgres: - host: synapse-postgresql - user: synapse_user - database: synapse_db - password: - secret: synapse-postgres-db - secretKey: password + postgres: + host: synapse-postgresql + user: synapse_user + database: synapse_db + password: + secret: synapse-postgres-db + secretKey: password - ingress: - host: synapse.ess.localhost - tlsSecret: synapse-web-tls + ingress: + host: synapse.ess.localhost + tlsSecret: synapse-web-tls + tolerations: + - key: context + operator: Equal + value: pytest + effect: NoSchedule + + workers: + sliding-sync: + enabled: true + media-repository: + enabled: true + + haproxy: + replicas: 1 tolerations: - key: context operator: Equal value: pytest effect: NoSchedule - workers: - sliding-sync: - enabled: true - media-repository: - enabled: true - - haproxy: - replicas: 1 - tolerations: - - key: context - operator: Equal - value: pytest - effect: NoSchedule - - redis: - tolerations: - - key: context - operator: Equal - value: pytest - effect: NoSchedule + redis: + tolerations: + - key: context + operator: Equal + value: pytest + effect: NoSchedule elementWeb: enabled: false diff --git a/charts/synapse/ci/checkov-with-workers-values.yaml b/charts/matrix-stack/ci/synapse-checkov-with-workers-values.yaml similarity index 100% rename from charts/synapse/ci/checkov-with-workers-values.yaml rename to charts/matrix-stack/ci/synapse-checkov-with-workers-values.yaml diff --git a/charts/synapse/ci/ingress-additional-paths-values.yaml b/charts/matrix-stack/ci/synapse-ingress-additional-paths-values.yaml similarity index 96% rename from charts/synapse/ci/ingress-additional-paths-values.yaml rename to charts/matrix-stack/ci/synapse-ingress-additional-paths-values.yaml index fbf193cb..98d54e96 100644 --- a/charts/synapse/ci/ingress-additional-paths-values.yaml +++ b/charts/matrix-stack/ci/synapse-ingress-additional-paths-values.yaml @@ -5,6 +5,9 @@ ess: serverName: ess.localhost +elementWeb: + enabled: false + synapse: enabled: true ingress: diff --git a/charts/synapse/ci/minimal-values.yaml b/charts/matrix-stack/ci/synapse-minimal-values.yaml similarity index 94% rename from charts/synapse/ci/minimal-values.yaml rename to charts/matrix-stack/ci/synapse-minimal-values.yaml index 3d181f5f..1e948afd 100644 --- a/charts/synapse/ci/minimal-values.yaml +++ b/charts/matrix-stack/ci/synapse-minimal-values.yaml @@ -5,6 +5,9 @@ ess: serverName: ess.localhost +elementWeb: + enabled: false + synapse: enabled: true ingress: diff --git a/charts/synapse/ci/worker-example-values.yaml b/charts/matrix-stack/ci/synapse-worker-example-values.yaml similarity index 97% rename from charts/synapse/ci/worker-example-values.yaml rename to charts/matrix-stack/ci/synapse-worker-example-values.yaml index 5a4e2ebc..1e721398 100644 --- a/charts/synapse/ci/worker-example-values.yaml +++ b/charts/matrix-stack/ci/synapse-worker-example-values.yaml @@ -5,6 +5,9 @@ ess: serverName: ess.localhost +elementWeb: + enabled: false + synapse: enabled: true ingress: diff --git a/charts/synapse/configs/haproxy/haproxy.cfg.tpl b/charts/matrix-stack/configs/synapse/haproxy.cfg.tpl similarity index 100% rename from charts/synapse/configs/haproxy/haproxy.cfg.tpl rename to charts/matrix-stack/configs/synapse/haproxy.cfg.tpl diff --git a/charts/synapse/configs/synapse/render_config_with_secrets.py b/charts/matrix-stack/configs/synapse/render_config_with_secrets.py similarity index 100% rename from charts/synapse/configs/synapse/render_config_with_secrets.py rename to charts/matrix-stack/configs/synapse/render_config_with_secrets.py diff --git a/charts/synapse/source/sub_schemas/ingress_with_additional_paths.json b/charts/matrix-stack/source/synapse/sub_schemas/ingress_with_additional_paths.json similarity index 100% rename from charts/synapse/source/sub_schemas/ingress_with_additional_paths.json rename to charts/matrix-stack/source/synapse/sub_schemas/ingress_with_additional_paths.json diff --git a/charts/synapse/source/sub_schemas/scalable_worker.json b/charts/matrix-stack/source/synapse/sub_schemas/scalable_worker.json similarity index 100% rename from charts/synapse/source/sub_schemas/scalable_worker.json rename to charts/matrix-stack/source/synapse/sub_schemas/scalable_worker.json diff --git a/charts/synapse/source/sub_schemas/single_worker.json b/charts/matrix-stack/source/synapse/sub_schemas/single_worker.json similarity index 100% rename from charts/synapse/source/sub_schemas/single_worker.json rename to charts/matrix-stack/source/synapse/sub_schemas/single_worker.json diff --git a/charts/synapse/source/sub_schemas/synapse_sub_schema_values.yaml.j2 b/charts/matrix-stack/source/synapse/sub_schemas/synapse_sub_schema_values.yaml.j2 similarity index 100% rename from charts/synapse/source/sub_schemas/synapse_sub_schema_values.yaml.j2 rename to charts/matrix-stack/source/synapse/sub_schemas/synapse_sub_schema_values.yaml.j2 diff --git a/charts/matrix-stack/source/synapse/values.schema.json b/charts/matrix-stack/source/synapse/values.schema.json new file mode 100644 index 00000000..112dbe00 --- /dev/null +++ b/charts/matrix-stack/source/synapse/values.schema.json @@ -0,0 +1,274 @@ +{ + "$id": "file://synapse", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "postgres": { + "$ref": "file://../sub_schemas/postgres-libpq.json" + }, + "media": { + "type": "object", + "properties": { + "storage": { + "$ref": "file://../sub_schemas/persistentVolumeClaim.json" + } + } + }, + "macaroon": { + "$ref": "file://../sub_schemas/credential.json" + }, + "registrationSharedSecret": { + "$ref": "file://../sub_schemas/credential.json" + }, + "signingKey": { + "$ref": "file://../sub_schemas/credential.json" + }, + "additional": { + "type": "object", + "anyOf": [ + { + "required": [] + }, + { + "required": [ + "config" + ] + }, + { + "required": [ + "configSecret", + "configSecretKey" + ] + } + ], + "properties": { + "config": { + "type": "string" + }, + "configSecret": { + "type": "string" + }, + "configSecretKey": { + "type": "string" + } + } + }, + "appservices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "registrationFileConfigMap": { + "type": "string" + } + } + } + }, + "logging": { + "type": "object", + "properties": { + "rootLevel": { + "type": "string", + "enum": [ + "CRITICAL", + "ERROR", + "WARNING", + "INFO", + "DEBUG" + ] + }, + "levelOverrides": { + "type": "object", + "additionalProperties": { + "type": "string", + "enum": [ + "CRITICAL", + "ERROR", + "WARNING", + "INFO", + "DEBUG" + ] + } + } + } + }, + "global": { + "$ref": "file://../sub_schemas/global.json" + }, + "ess-library": { + "$ref": "file://../sub_schemas/essLibrary.json" + }, + "ingress": { + "$ref": "file://./synapse/sub_schemas/ingress_with_additional_paths.json" + }, + "image": { + "$ref": "file://../sub_schemas/image.json" + }, + "labels": { + "$ref": "file://../sub_schemas/labels.json" + }, + "annotations": { + "$ref": "file://../sub_schemas/workloadAnnotations.json" + }, + "containersSecurityContext": { + "$ref": "file://../sub_schemas/containersSecurityContext.json" + }, + "extraEnv": { + "$ref": "file://../sub_schemas/extraEnv.json" + }, + "hostAliases": { + "$ref": "file://../sub_schemas/hostAliases.json" + }, + "nodeSelector": { + "$ref": "file://../sub_schemas/nodeSelector.json" + }, + "podSecurityContext": { + "$ref": "file://../sub_schemas/podSecurityContext.json" + }, + "resources": { + "$ref": "file://../sub_schemas/resources.json" + }, + "serviceAccount": { + "$ref": "file://../sub_schemas/serviceAccount.json" + }, + "serviceMonitors": { + "$ref": "file://../sub_schemas/serviceMonitors.json" + }, + "tolerations": { + "$ref": "file://../sub_schemas/tolerations.json" + }, + "workers": { + "type": "object", + "properties": { + "appservice": { + "$ref": "file://./synapse/sub_schemas/single_worker.json" + }, + "background": { + "$ref": "file://./synapse/sub_schemas/single_worker.json" + }, + "client-reader": { + "$ref": "file://./synapse/sub_schemas/scalable_worker.json" + }, + "encryption": { + "$ref": "file://./synapse/sub_schemas/single_worker.json" + }, + "event-creator": { + "$ref": "file://./synapse/sub_schemas/scalable_worker.json" + }, + "event-persister": { + "$ref": "file://./synapse/sub_schemas/scalable_worker.json" + }, + "federation-reader": { + "$ref": "file://./synapse/sub_schemas/scalable_worker.json" + }, + "federation-sender": { + "$ref": "file://./synapse/sub_schemas/scalable_worker.json" + }, + "initial-synchrotron": { + "$ref": "file://./synapse/sub_schemas/scalable_worker.json" + }, + "media-repository": { + "$ref": "file://./synapse/sub_schemas/single_worker.json" + }, + "presence-writer": { + "$ref": "file://./synapse/sub_schemas/single_worker.json" + }, + "pusher": { + "$ref": "file://./synapse/sub_schemas/scalable_worker.json" + }, + "receipts-account": { + "$ref": "file://./synapse/sub_schemas/single_worker.json" + }, + "sliding-sync": { + "$ref": "file://./synapse/sub_schemas/scalable_worker.json" + }, + "sso-login": { + "$ref": "file://./synapse/sub_schemas/single_worker.json" + }, + "synchrotron": { + "$ref": "file://./synapse/sub_schemas/scalable_worker.json" + }, + "typing-persister": { + "$ref": "file://./synapse/sub_schemas/single_worker.json" + }, + "user-dir": { + "$ref": "file://./synapse/sub_schemas/single_worker.json" + } + } + }, + "haproxy": { + "type": "object", + "properties": { + "replicas": { + "minimum": 1, + "type": "integer" + }, + "image": { + "$ref": "file://../sub_schemas/image.json" + }, + "labels": { + "$ref": "file://../sub_schemas/labels.json" + }, + "annotations": { + "$ref": "file://../sub_schemas/workloadAnnotations.json" + }, + "containersSecurityContext": { + "$ref": "file://../sub_schemas/containersSecurityContext.json" + }, + "nodeSelector": { + "$ref": "file://../sub_schemas/nodeSelector.json" + }, + "podSecurityContext": { + "$ref": "file://../sub_schemas/podSecurityContext.json" + }, + "resources": { + "$ref": "file://../sub_schemas/resources.json" + }, + "serviceAccount": { + "$ref": "file://../sub_schemas/serviceAccount.json" + }, + "serviceMonitors": { + "$ref": "file://../sub_schemas/serviceMonitors.json" + }, + "tolerations": { + "$ref": "file://../sub_schemas/tolerations.json" + } + } + }, + "redis": { + "type": "object", + "properties": { + "image": { + "$ref": "file://../sub_schemas/image.json" + }, + "labels": { + "$ref": "file://../sub_schemas/labels.json" + }, + "annotations": { + "$ref": "file://../sub_schemas/workloadAnnotations.json" + }, + "containersSecurityContext": { + "$ref": "file://../sub_schemas/containersSecurityContext.json" + }, + "nodeSelector": { + "$ref": "file://../sub_schemas/nodeSelector.json" + }, + "podSecurityContext": { + "$ref": "file://../sub_schemas/podSecurityContext.json" + }, + "resources": { + "$ref": "file://../sub_schemas/resources.json" + }, + "serviceAccount": { + "$ref": "file://../sub_schemas/serviceAccount.json" + }, + "tolerations": { + "$ref": "file://../sub_schemas/tolerations.json" + } + } + } + } +} diff --git a/charts/matrix-stack/source/synapse/values.yaml.j2 b/charts/matrix-stack/source/synapse/values.yaml.j2 new file mode 100644 index 00000000..a58a1909 --- /dev/null +++ b/charts/matrix-stack/source/synapse/values.yaml.j2 @@ -0,0 +1,110 @@ +{# +Copyright 2024 New Vector Ltd + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +#} + +{% import 'sub_schema_values.yaml.j2' as sub_schema_values -%} +{% import 'synapse_sub_schema_values.yaml.j2' as synapse_sub_schema_values -%} +enabled: true +{{- sub_schema_values.postgresLibPQ() }} +## Configures the media store for Synapse +media: +{{- sub_schema_values.persistentVolumeClaim("storage") | indent(2) }} + +{{- sub_schema_values.credential("Key used to sign events and federation requests.\n## This needs to be the full signing key starting `ed25519 ...`", "signingKey") }} +{{- sub_schema_values.credential("Shared Secret to registering users without having any users provisioned", "registrationSharedSecret") }} +{{- sub_schema_values.credential("Secret used to sign Synapse issued tokens", "macaroon") }} + +## Additional configuration to provide to all Synapse processes. +## This can be provided in-line in the Helm Chart and/or via an existing Secret +## e.g. +## additional: +## config: | +## allow_guest_access: true +## +## or +## additional: +## configSecret: custom-synapse-config +## configSecretKey: shared.yaml +additional: {} + +## Details of Application Service registration files to give to Synapse +## e.g. +## appservices: +## - registrationFileConfigMap: test-appservice +appservices: [] + +## Additional Synapse processes managed by this chart +## e.g. +## workers: +## client-reader: +## instances: 2 +## event-creator: {} +workers: +{{- synapse_sub_schema_values.single_worker('appservice') | indent(2) }} +{{- synapse_sub_schema_values.single_worker('background') | indent(2) }} +{{- synapse_sub_schema_values.scalable_worker('client-reader') | indent(2) }} +{{- synapse_sub_schema_values.single_worker('encryption') | indent(2) }} +{{- synapse_sub_schema_values.scalable_worker('event-creator') | indent(2) }} +{{- synapse_sub_schema_values.scalable_worker('event-persister') | indent(2) }} +{{- synapse_sub_schema_values.scalable_worker('federation-reader') | indent(2) }} +{{- synapse_sub_schema_values.scalable_worker('federation-sender') | indent(2) }} +{{- synapse_sub_schema_values.scalable_worker('initial-synchrotron') | indent(2) }} +{{- synapse_sub_schema_values.single_worker('media-repository') | indent(2) }} +{{- synapse_sub_schema_values.single_worker('presence-writer') | indent(2) }} +{{- synapse_sub_schema_values.scalable_worker('pusher') | indent(2) }} +{{- synapse_sub_schema_values.single_worker('receipts-account') | indent(2) }} +{{- synapse_sub_schema_values.scalable_worker('sliding-sync') | indent(2) }} +{{- synapse_sub_schema_values.single_worker('sso-login') | indent(2) }} +{{- synapse_sub_schema_values.scalable_worker('synchrotron') | indent(2) }} +{{- synapse_sub_schema_values.single_worker('typing-persister') | indent(2) }} +{{- synapse_sub_schema_values.single_worker('user-dir') | indent(2) }} + +## Synapse's logging settings +logging: + ## The maximum level of Synapse log output before any overrides + rootLevel: INFO + + ## Override the log level of specific loggers + ## e.g. + ## levelOverrides: + ## synapse.util.caches.lrucache: WARNING + levelOverrides: {} +{{- sub_schema_values.image(registry='docker.io', repository='matrixdotorg/synapse', tag='v1.116.0') }} +{{- sub_schema_values.ingress() }} +{{- sub_schema_values.labels() }} +{{- sub_schema_values.workloadAnnotations() }} +{{- sub_schema_values.containersSecurityContext() }} +{{- sub_schema_values.extraEnv() }} +{{- sub_schema_values.hostAliases() }} +{{- sub_schema_values.nodeSelector() }} +{{- sub_schema_values.podSecurityContext(user_id='10091', group_id='10091') }} +{{- sub_schema_values.resources(requests_memory='100Mi', requests_cpu='100m', limits_memory='4Gi') }} +{{- sub_schema_values.serviceAccount() }} +{{- sub_schema_values.serviceMonitors() }} +{{- sub_schema_values.tolerations() }} + +haproxy: + replicas: 2 +{{- sub_schema_values.image(registry='docker.io', repository='library/haproxy', tag='3.0-alpine') | indent(2) }} +{{- sub_schema_values.labels() | indent(2) }} +{{- sub_schema_values.workloadAnnotations() | indent(2) }} +{{- sub_schema_values.containersSecurityContext() | indent(2) }} +{{- sub_schema_values.nodeSelector() | indent(2) }} +{{- sub_schema_values.podSecurityContext(user_id='10001', group_id='10001') | indent(2) }} +{{- sub_schema_values.resources(requests_memory='100Mi', requests_cpu='100m', limits_memory='200Mi') | indent(2) }} +{{- sub_schema_values.serviceAccount() | indent(2) }} +{{- sub_schema_values.serviceMonitors() | indent(2) }} +{{- sub_schema_values.tolerations() | indent(2) }} + +redis: +{{- sub_schema_values.image(registry='docker.io', repository='library/redis', tag='7.4-alpine') | indent(2) }} +{{- sub_schema_values.labels() | indent(2) }} +{{- sub_schema_values.workloadAnnotations() | indent(2) }} +{{- sub_schema_values.containersSecurityContext() | indent(2) }} +{{- sub_schema_values.nodeSelector() | indent(2) }} +{{- sub_schema_values.podSecurityContext(user_id='10002', group_id='10002') | indent(2) }} +{{- sub_schema_values.resources(requests_memory='50Mi', requests_cpu='50m', limits_memory='50Mi') | indent(2) }} +{{- sub_schema_values.serviceAccount() | indent(2) }} +{{- sub_schema_values.tolerations() | indent(2) }} diff --git a/charts/matrix-stack/source/values.schema.json b/charts/matrix-stack/source/values.schema.json index d3cc3789..5497339c 100644 --- a/charts/matrix-stack/source/values.schema.json +++ b/charts/matrix-stack/source/values.schema.json @@ -17,8 +17,7 @@ "$ref": "file://./element-web/values.schema.json" }, "synapse": { - "type": "object", - "additionalProperties": true + "$ref": "file://./synapse/values.schema.json" } } } diff --git a/charts/matrix-stack/source/values.yaml.j2 b/charts/matrix-stack/source/values.yaml.j2 index e47aadba..4e7a308b 100644 --- a/charts/matrix-stack/source/values.yaml.j2 +++ b/charts/matrix-stack/source/values.yaml.j2 @@ -14,5 +14,5 @@ elementWeb: {{- elementWebValues() | trim | indent(2) }} synapse: - {% macro synapseValues() %}{% include 'synapse/source/values.yaml.j2'%}{% endmacro %} + {% macro synapseValues() %}{% include 'synapse/values.yaml.j2'%}{% endmacro %} {{- synapseValues() | trim | indent(2) }} diff --git a/charts/synapse/templates/_helpers.tpl b/charts/matrix-stack/templates/synapse/_helpers.tpl similarity index 100% rename from charts/synapse/templates/_helpers.tpl rename to charts/matrix-stack/templates/synapse/_helpers.tpl diff --git a/charts/synapse/templates/_synapse_config.tpl b/charts/matrix-stack/templates/synapse/_synapse_config.tpl similarity index 100% rename from charts/synapse/templates/_synapse_config.tpl rename to charts/matrix-stack/templates/synapse/_synapse_config.tpl diff --git a/charts/synapse/templates/_synapse_details.tpl b/charts/matrix-stack/templates/synapse/_synapse_details.tpl similarity index 100% rename from charts/synapse/templates/_synapse_details.tpl rename to charts/matrix-stack/templates/synapse/_synapse_details.tpl diff --git a/charts/synapse/templates/haproxy_configmap.yaml b/charts/matrix-stack/templates/synapse/haproxy_configmap.yaml similarity index 96% rename from charts/synapse/templates/haproxy_configmap.yaml rename to charts/matrix-stack/templates/synapse/haproxy_configmap.yaml index 6eeb57a1..39673261 100644 --- a/charts/synapse/templates/haproxy_configmap.yaml +++ b/charts/matrix-stack/templates/synapse/haproxy_configmap.yaml @@ -15,7 +15,7 @@ metadata: namespace: {{ $.Release.Namespace }} data: haproxy.cfg: | - {{- tpl ($.Files.Get "configs/haproxy/haproxy.cfg.tpl") (dict "root" $ "context" .) | nindent 4 }} + {{- tpl ($.Files.Get "configs/synapse/haproxy.cfg.tpl") (dict "root" $ "context" .) | nindent 4 }} path_map_file: | # A map file that is used in haproxy config to map from matrix paths to the # named backend. The format is: path_regexp backend_name diff --git a/charts/synapse/templates/haproxy_deployment.yaml b/charts/matrix-stack/templates/synapse/haproxy_deployment.yaml similarity index 96% rename from charts/synapse/templates/haproxy_deployment.yaml rename to charts/matrix-stack/templates/synapse/haproxy_deployment.yaml index ecf2b192..d1b5a077 100644 --- a/charts/synapse/templates/haproxy_deployment.yaml +++ b/charts/matrix-stack/templates/synapse/haproxy_deployment.yaml @@ -17,7 +17,7 @@ metadata: {{- end }} labels: {{- include "element-io.synapse.haproxy.labels" (dict "root" $ "context" .) | nindent 4 }} - k8s.element.io/confighash: "{{ include (print $.Template.BasePath "/haproxy_configmap.yaml") $ | sha1sum }}" + k8s.element.io/confighash: "{{ include (print $.Template.BasePath "/synapse/haproxy_configmap.yaml") $ | sha1sum }}" name: {{ $.Release.Name }}-synapse-haproxy namespace: {{ $.Release.Namespace }} spec: @@ -34,7 +34,7 @@ spec: metadata: labels: {{- include "element-io.synapse.haproxy.labels" (dict "root" $ "context" .) | nindent 8 }} - k8s.element.io/confighash: "{{ include (print $.Template.BasePath "/haproxy_configmap.yaml") $ | sha1sum }}" + k8s.element.io/confighash: "{{ include (print $.Template.BasePath "/synapse/haproxy_configmap.yaml") $ | sha1sum }}" {{- with .annotations }} annotations: {{- toYaml . | nindent 8 }} diff --git a/charts/synapse/templates/haproxy_service_monitor.yaml b/charts/matrix-stack/templates/synapse/haproxy_service_monitor.yaml similarity index 100% rename from charts/synapse/templates/haproxy_service_monitor.yaml rename to charts/matrix-stack/templates/synapse/haproxy_service_monitor.yaml diff --git a/charts/synapse/templates/haproxy_serviceaccount.yaml b/charts/matrix-stack/templates/synapse/haproxy_serviceaccount.yaml similarity index 100% rename from charts/synapse/templates/haproxy_serviceaccount.yaml rename to charts/matrix-stack/templates/synapse/haproxy_serviceaccount.yaml diff --git a/charts/synapse/templates/redis_configmap.yaml b/charts/matrix-stack/templates/synapse/redis_configmap.yaml similarity index 100% rename from charts/synapse/templates/redis_configmap.yaml rename to charts/matrix-stack/templates/synapse/redis_configmap.yaml diff --git a/charts/synapse/templates/redis_deployment.yaml b/charts/matrix-stack/templates/synapse/redis_deployment.yaml similarity index 96% rename from charts/synapse/templates/redis_deployment.yaml rename to charts/matrix-stack/templates/synapse/redis_deployment.yaml index 15cba4ed..941c15dd 100644 --- a/charts/synapse/templates/redis_deployment.yaml +++ b/charts/matrix-stack/templates/synapse/redis_deployment.yaml @@ -17,7 +17,7 @@ metadata: {{- end }} labels: {{- include "element-io.synapse.redis.labels" (dict "root" $ "context" .) | nindent 4 }} - k8s.element.io/confighash: "{{ include (print $.Template.BasePath "/redis_configmap.yaml") $ | sha1sum }}" + k8s.element.io/confighash: "{{ include (print $.Template.BasePath "/synapse/redis_configmap.yaml") $ | sha1sum }}" name: {{ $.Release.Name }}-synapse-redis namespace: {{ $.Release.Namespace }} spec: @@ -34,7 +34,7 @@ spec: metadata: labels: {{- include "element-io.synapse.redis.labels" (dict "root" $ "context" .) | nindent 8 }} - k8s.element.io/confighash: "{{ include (print $.Template.BasePath "/redis_configmap.yaml") $ | sha1sum }}" + k8s.element.io/confighash: "{{ include (print $.Template.BasePath "/synapse/redis_configmap.yaml") $ | sha1sum }}" {{- with .annotations }} annotations: {{- toYaml . | nindent 8 }} diff --git a/charts/synapse/templates/redis_service.yaml b/charts/matrix-stack/templates/synapse/redis_service.yaml similarity index 100% rename from charts/synapse/templates/redis_service.yaml rename to charts/matrix-stack/templates/synapse/redis_service.yaml diff --git a/charts/synapse/templates/redis_serviceaccount.yaml b/charts/matrix-stack/templates/synapse/redis_serviceaccount.yaml similarity index 100% rename from charts/synapse/templates/redis_serviceaccount.yaml rename to charts/matrix-stack/templates/synapse/redis_serviceaccount.yaml diff --git a/charts/synapse/templates/synapse_configmap.yaml b/charts/matrix-stack/templates/synapse/synapse_configmap.yaml similarity index 100% rename from charts/synapse/templates/synapse_configmap.yaml rename to charts/matrix-stack/templates/synapse/synapse_configmap.yaml diff --git a/charts/synapse/templates/synapse_http_service.yaml b/charts/matrix-stack/templates/synapse/synapse_http_service.yaml similarity index 100% rename from charts/synapse/templates/synapse_http_service.yaml rename to charts/matrix-stack/templates/synapse/synapse_http_service.yaml diff --git a/charts/synapse/templates/synapse_ingress.yaml b/charts/matrix-stack/templates/synapse/synapse_ingress.yaml similarity index 100% rename from charts/synapse/templates/synapse_ingress.yaml rename to charts/matrix-stack/templates/synapse/synapse_ingress.yaml diff --git a/charts/synapse/templates/synapse_persistentvolumeclaim.yaml b/charts/matrix-stack/templates/synapse/synapse_persistentvolumeclaim.yaml similarity index 100% rename from charts/synapse/templates/synapse_persistentvolumeclaim.yaml rename to charts/matrix-stack/templates/synapse/synapse_persistentvolumeclaim.yaml diff --git a/charts/synapse/templates/synapse_secret.yaml b/charts/matrix-stack/templates/synapse/synapse_secret.yaml similarity index 100% rename from charts/synapse/templates/synapse_secret.yaml rename to charts/matrix-stack/templates/synapse/synapse_secret.yaml diff --git a/charts/synapse/templates/synapse_service.yaml b/charts/matrix-stack/templates/synapse/synapse_service.yaml similarity index 100% rename from charts/synapse/templates/synapse_service.yaml rename to charts/matrix-stack/templates/synapse/synapse_service.yaml diff --git a/charts/synapse/templates/synapse_service_monitor.yaml b/charts/matrix-stack/templates/synapse/synapse_service_monitor.yaml similarity index 100% rename from charts/synapse/templates/synapse_service_monitor.yaml rename to charts/matrix-stack/templates/synapse/synapse_service_monitor.yaml diff --git a/charts/synapse/templates/synapse_serviceaccount.yaml b/charts/matrix-stack/templates/synapse/synapse_serviceaccount.yaml similarity index 100% rename from charts/synapse/templates/synapse_serviceaccount.yaml rename to charts/matrix-stack/templates/synapse/synapse_serviceaccount.yaml diff --git a/charts/synapse/templates/synapse_statefulset.yaml b/charts/matrix-stack/templates/synapse/synapse_statefulset.yaml similarity index 97% rename from charts/synapse/templates/synapse_statefulset.yaml rename to charts/matrix-stack/templates/synapse/synapse_statefulset.yaml index 83a0c01d..676a7de9 100644 --- a/charts/synapse/templates/synapse_statefulset.yaml +++ b/charts/matrix-stack/templates/synapse/synapse_statefulset.yaml @@ -19,8 +19,8 @@ metadata: {{- end }} labels: {{- include "element-io.synapse.process.labels" (dict "root" $ "context" $perProcessRoot) | nindent 4 }} - k8s.element.io/confighash: "{{ include (print $.Template.BasePath "/synapse_secret.yaml") $ | sha1sum }}" - k8s.element.io/logconfighash: "{{ include (print $.Template.BasePath "/synapse_configmap.yaml") $ | sha1sum }}" + k8s.element.io/confighash: "{{ include (print $.Template.BasePath "/synapse/synapse_secret.yaml") $ | sha1sum }}" + k8s.element.io/logconfighash: "{{ include (print $.Template.BasePath "/synapse/synapse_configmap.yaml") $ | sha1sum }}" {{- range $index, $appservice := .appservices }} k8s.element.io/as-registration-{{ $index }}-hash: "{{ (lookup "v1" "ConfigMap" $.Release.Namespace $appservice.registrationFileConfigMap) | toJson | sha1sum }}" {{- end }} @@ -40,8 +40,8 @@ spec: metadata: labels: {{- include "element-io.synapse.process.labels" (dict "root" $ "context" $perProcessRoot) | nindent 8 }} - k8s.element.io/confighash: "{{ include (print $.Template.BasePath "/synapse_secret.yaml") $ | sha1sum }}" - k8s.element.io/logconfighash: "{{ include (print $.Template.BasePath "/synapse_configmap.yaml") $ | sha1sum }}" + k8s.element.io/confighash: "{{ include (print $.Template.BasePath "/synapse/synapse_secret.yaml") $ | sha1sum }}" + k8s.element.io/logconfighash: "{{ include (print $.Template.BasePath "/synapse/synapse_configmap.yaml") $ | sha1sum }}" {{- range $index, $appservice := .appservices }} k8s.element.io/as-registration-{{ $index }}-hash: "{{ (lookup "v1" "ConfigMap" $.Release.Namespace $appservice.registrationFileConfigMap) | toJson | sha1sum }}" {{- end }} diff --git a/charts/matrix-stack/values.schema.json b/charts/matrix-stack/values.schema.json index dc230544..9fa313e9 100644 --- a/charts/matrix-stack/values.schema.json +++ b/charts/matrix-stack/values.schema.json @@ -389,8 +389,2018 @@ "additionalProperties": false }, "synapse": { + "$id": "file://synapse", + "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", - "additionalProperties": true + "properties": { + "enabled": { + "type": "boolean" + }, + "postgres": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "user": { + "type": "string" + }, + "database": { + "type": "string" + }, + "sslMode": { + "type": "string", + "enum": [ + "disable", + "allow", + "prefer", + "require", + "verify-ca", + "verify-full" + ] + }, + "password": { + "type": "object", + "properties": { + "value": { + "type": "string" + }, + "secret": { + "type": "string" + }, + "secretKey": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "media": { + "type": "object", + "properties": { + "storage": { + "type": "object", + "properties": { + "existingClaim": { + "type": "string" + }, + "size": { + "type": "string" + }, + "storageClass": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "macaroon": { + "type": "object", + "properties": { + "value": { + "type": "string" + }, + "secret": { + "type": "string" + }, + "secretKey": { + "type": "string" + } + }, + "additionalProperties": false + }, + "registrationSharedSecret": { + "type": "object", + "properties": { + "value": { + "type": "string" + }, + "secret": { + "type": "string" + }, + "secretKey": { + "type": "string" + } + }, + "additionalProperties": false + }, + "signingKey": { + "type": "object", + "properties": { + "value": { + "type": "string" + }, + "secret": { + "type": "string" + }, + "secretKey": { + "type": "string" + } + }, + "additionalProperties": false + }, + "additional": { + "type": "object", + "anyOf": [ + { + "required": [] + }, + { + "required": [ + "config" + ] + }, + { + "required": [ + "configSecret", + "configSecretKey" + ] + } + ], + "properties": { + "config": { + "type": "string" + }, + "configSecret": { + "type": "string" + }, + "configSecretKey": { + "type": "string" + } + }, + "additionalProperties": false + }, + "appservices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "registrationFileConfigMap": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "logging": { + "type": "object", + "properties": { + "rootLevel": { + "type": "string", + "enum": [ + "CRITICAL", + "ERROR", + "WARNING", + "INFO", + "DEBUG" + ] + }, + "levelOverrides": { + "type": "object", + "additionalProperties": { + "type": "string", + "enum": [ + "CRITICAL", + "ERROR", + "WARNING", + "INFO", + "DEBUG" + ] + } + } + }, + "additionalProperties": false + }, + "global": { + "type": "object", + "additionalProperties": true, + "properties": { + "ess": { + "type": "object", + "properties": { + "server_name": { + "type": "string" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "imagePullSecrets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + } + } + }, + "ess-library": { + "type": "object", + "additionalProperties": true + }, + "ingress": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "host": { + "type": "string" + }, + "className": { + "type": "string" + }, + "tlsSecret": { + "type": "string" + }, + "service": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "ClusterIP", + "NodePort", + "LoadBalancer" + ] + } + }, + "additionalProperties": false + }, + "additionalPaths": { + "type": "array", + "items": { + "type": "object", + "required": [ + "path", + "availability" + ], + "properties": { + "path": { + "type": "string" + }, + "availability": { + "type": "string", + "enum": [ + "internally_and_externally", + "only_externally", + "blocked" + ] + }, + "service": { + "type": "object", + "required": [ + "name", + "port" + ], + "properties": { + "name": { + "type": "string" + }, + "port": { + "type": "object", + "oneOf": [ + { + "required": [ + "name" + ], + "not": { + "required": [ + "number" + ] + } + }, + { + "required": [ + "number" + ], + "not": { + "required": [ + "name" + ] + } + } + ], + "properties": { + "name": { + "type": "string" + }, + "number": { + "type": "integer" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "image": { + "type": "object", + "required": [ + "repository" + ], + "properties": { + "registry": { + "type": "string" + }, + "repository": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "digest": { + "type": "string" + }, + "pullPolicy": { + "type": "string", + "enum": [ + "Always", + "IfNotPresent", + "Never" + ] + }, + "pullSecrets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "containersSecurityContext": { + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "capabilities": { + "properties": { + "add": { + "items": { + "type": "string" + }, + "type": "array" + }, + "drop": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "seccompProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "enum": [ + "RuntimeDefault", + "Unconfined", + "Localhost" + ], + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "extraEnv": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "hostAliases": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ip": { + "type": "string" + }, + "hostnames": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "nodeSelector": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "podSecurityContext": { + "properties": { + "fsGroup": { + "format": "int64", + "type": "integer" + }, + "fsGroupChangePolicy": { + "type": "string" + }, + "runAsGroup": { + "format": "int64", + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "format": "int64", + "type": "integer" + }, + "seLinuxOptions": { + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "seccompProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "enum": [ + "RuntimeDefault", + "Unconfined", + "Localhost" + ], + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "supplementalGroups": { + "items": { + "format": "int64", + "type": "integer" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + }, + "serviceAccount": { + "type": "object", + "properties": { + "create": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "serviceMonitors": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "tolerations": { + "type": "array", + "items": { + "properties": { + "effect": { + "type": "string", + "enum": [ + "NoSchedule", + "PreferNoSchedule", + "NoExecute" + ] + }, + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "tolerationSeconds": { + "type": "number" + }, + "value": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "workers": { + "type": "object", + "properties": { + "appservice": { + "properties": { + "enabled": { + "type": "boolean" + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "background": { + "properties": { + "enabled": { + "type": "boolean" + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "client-reader": { + "required": [ + "instances" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "instances": { + "type": "integer", + "minimum": 1 + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "encryption": { + "properties": { + "enabled": { + "type": "boolean" + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "event-creator": { + "required": [ + "instances" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "instances": { + "type": "integer", + "minimum": 1 + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "event-persister": { + "required": [ + "instances" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "instances": { + "type": "integer", + "minimum": 1 + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "federation-reader": { + "required": [ + "instances" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "instances": { + "type": "integer", + "minimum": 1 + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "federation-sender": { + "required": [ + "instances" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "instances": { + "type": "integer", + "minimum": 1 + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "initial-synchrotron": { + "required": [ + "instances" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "instances": { + "type": "integer", + "minimum": 1 + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "media-repository": { + "properties": { + "enabled": { + "type": "boolean" + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "presence-writer": { + "properties": { + "enabled": { + "type": "boolean" + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "pusher": { + "required": [ + "instances" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "instances": { + "type": "integer", + "minimum": 1 + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "receipts-account": { + "properties": { + "enabled": { + "type": "boolean" + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "sliding-sync": { + "required": [ + "instances" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "instances": { + "type": "integer", + "minimum": 1 + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "sso-login": { + "properties": { + "enabled": { + "type": "boolean" + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "synchrotron": { + "required": [ + "instances" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "instances": { + "type": "integer", + "minimum": 1 + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "typing-persister": { + "properties": { + "enabled": { + "type": "boolean" + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "user-dir": { + "properties": { + "enabled": { + "type": "boolean" + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "haproxy": { + "type": "object", + "properties": { + "replicas": { + "minimum": 1, + "type": "integer" + }, + "image": { + "type": "object", + "required": [ + "repository" + ], + "properties": { + "registry": { + "type": "string" + }, + "repository": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "digest": { + "type": "string" + }, + "pullPolicy": { + "type": "string", + "enum": [ + "Always", + "IfNotPresent", + "Never" + ] + }, + "pullSecrets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "containersSecurityContext": { + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "capabilities": { + "properties": { + "add": { + "items": { + "type": "string" + }, + "type": "array" + }, + "drop": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "seccompProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "enum": [ + "RuntimeDefault", + "Unconfined", + "Localhost" + ], + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "nodeSelector": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "podSecurityContext": { + "properties": { + "fsGroup": { + "format": "int64", + "type": "integer" + }, + "fsGroupChangePolicy": { + "type": "string" + }, + "runAsGroup": { + "format": "int64", + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "format": "int64", + "type": "integer" + }, + "seLinuxOptions": { + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "seccompProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "enum": [ + "RuntimeDefault", + "Unconfined", + "Localhost" + ], + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "supplementalGroups": { + "items": { + "format": "int64", + "type": "integer" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + }, + "serviceAccount": { + "type": "object", + "properties": { + "create": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "serviceMonitors": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "tolerations": { + "type": "array", + "items": { + "properties": { + "effect": { + "type": "string", + "enum": [ + "NoSchedule", + "PreferNoSchedule", + "NoExecute" + ] + }, + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "tolerationSeconds": { + "type": "number" + }, + "value": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "redis": { + "type": "object", + "properties": { + "image": { + "type": "object", + "required": [ + "repository" + ], + "properties": { + "registry": { + "type": "string" + }, + "repository": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "digest": { + "type": "string" + }, + "pullPolicy": { + "type": "string", + "enum": [ + "Always", + "IfNotPresent", + "Never" + ] + }, + "pullSecrets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "containersSecurityContext": { + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "capabilities": { + "properties": { + "add": { + "items": { + "type": "string" + }, + "type": "array" + }, + "drop": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "readOnlyRootFilesystem": { + "type": "boolean" + }, + "seccompProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "enum": [ + "RuntimeDefault", + "Unconfined", + "Localhost" + ], + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "nodeSelector": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "podSecurityContext": { + "properties": { + "fsGroup": { + "format": "int64", + "type": "integer" + }, + "fsGroupChangePolicy": { + "type": "string" + }, + "runAsGroup": { + "format": "int64", + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "format": "int64", + "type": "integer" + }, + "seLinuxOptions": { + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "seccompProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "enum": [ + "RuntimeDefault", + "Unconfined", + "Localhost" + ], + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "supplementalGroups": { + "items": { + "format": "int64", + "type": "integer" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + }, + "requests": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + }, + "serviceAccount": { + "type": "object", + "properties": { + "create": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "tolerations": { + "type": "array", + "items": { + "properties": { + "effect": { + "type": "string", + "enum": [ + "NoSchedule", + "PreferNoSchedule", + "NoExecute" + ] + }, + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "tolerationSeconds": { + "type": "number" + }, + "value": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + } + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false } }, "additionalProperties": false diff --git a/charts/matrix-stack/values.yaml b/charts/matrix-stack/values.yaml index a609ef76..6a7c72f9 100644 --- a/charts/matrix-stack/values.yaml +++ b/charts/matrix-stack/values.yaml @@ -211,289 +211,455 @@ elementWeb: tolerations: [] synapse: - # This file is generated. Do not edit directly. Edit source/values.yaml.j2 instead to make changes - ## ESS specific globals, namespaced to avoid interference with other charts - ess: - ## The server name of the Matrix Stack. This gets embedded in user IDs & room IDs - ## It can not change after the initial deployment. - # serverName: ess.localhost - ## Labels to add to all manifest in this chart - labels: {} + enabled: true + ## Details of the Postgres Database to use + postgres: + ## PostgreSQL database host + # host: - ## A list of Secrets in this namespace to use as pull Secrets. - ## Ignored if a given component specifies its own pull Secrets. + ## PostgreSQL port + port: 5432 + + ## PostgreSQL username + # user: + + ## PostgreSQL database name + # database: + + ## TLS settins to use for the PostgreSQL connection + sslMode: prefer + + ## PostgreSQL password. + ## It can either be provided inline in the Helm chart e.g.: + ## password: + ## value: SecretValue + ## + ## Or it can be provided via an existing Secret e.g.: + ## password: + ## secret: existing-secret + ## secretKey: key-in-secret + password: {} + ## Configures the media store for Synapse + media: + ## Configures the PersistentVolumeClaim to be used for storage + storage: + ## Name of an existing PersistentVolumeClaim in this namespace that should be used + # existingClaim: + + ## The size of a PersistentVolumeClaim to be constructed + ## Ignored if existingClaim is provided + size: 10Gi + + ## The StorageClass to be used by the constructed PersistentVolumeClaim. + ## Will use the cluster default if not provided + ## Ignored if existingClaim is provided + # storageClass: + ## Key used to sign events and federation requests. + ## This needs to be the full signing key starting `ed25519 ...`. + ## It can either be provided inline in the Helm chart e.g.: + ## signingKey: + ## value: SecretValue + ## + ## Or it can be provided via an existing Secret e.g.: + ## signingKey: + ## secret: existing-secret + ## secretKey: key-in-secret + signingKey: {} + ## Shared Secret to registering users without having any users provisioned. + ## It can either be provided inline in the Helm chart e.g.: + ## registrationSharedSecret: + ## value: SecretValue + ## + ## Or it can be provided via an existing Secret e.g.: + ## registrationSharedSecret: + ## secret: existing-secret + ## secretKey: key-in-secret + registrationSharedSecret: {} + ## Secret used to sign Synapse issued tokens. + ## It can either be provided inline in the Helm chart e.g.: + ## macaroon: + ## value: SecretValue + ## + ## Or it can be provided via an existing Secret e.g.: + ## macaroon: + ## secret: existing-secret + ## secretKey: key-in-secret + macaroon: {} + + ## Additional configuration to provide to all Synapse processes. + ## This can be provided in-line in the Helm Chart and/or via an existing Secret + ## e.g. + ## additional: + ## config: | + ## allow_guest_access: true + ## + ## or + ## additional: + ## configSecret: custom-synapse-config + ## configSecretKey: shared.yaml + additional: {} + + ## Details of Application Service registration files to give to Synapse + ## e.g. + ## appservices: + ## - registrationFileConfigMap: test-appservice + appservices: [] + + ## Additional Synapse processes managed by this chart + ## e.g. + ## workers: + ## client-reader: + ## instances: 2 + ## event-creator: {} + workers: + appservice: + ## Set to true to deploy a single instance of this worker + enabled: false + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + background: + ## Set to true to deploy a single instance of this worker + enabled: false + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + client-reader: + ## Set to true to deploy instances of this worker + enabled: false + + ## The number of instances of this worker to run + instances: 1 + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + encryption: + ## Set to true to deploy a single instance of this worker + enabled: false + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + event-creator: + ## Set to true to deploy instances of this worker + enabled: false + + ## The number of instances of this worker to run + instances: 1 + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + event-persister: + ## Set to true to deploy instances of this worker + enabled: false + + ## The number of instances of this worker to run + instances: 1 + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + federation-reader: + ## Set to true to deploy instances of this worker + enabled: false + + ## The number of instances of this worker to run + instances: 1 + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + federation-sender: + ## Set to true to deploy instances of this worker + enabled: false + + ## The number of instances of this worker to run + instances: 1 + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + initial-synchrotron: + ## Set to true to deploy instances of this worker + enabled: false + + ## The number of instances of this worker to run + instances: 1 + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + media-repository: + ## Set to true to deploy a single instance of this worker + enabled: false + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + presence-writer: + ## Set to true to deploy a single instance of this worker + enabled: false + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + pusher: + ## Set to true to deploy instances of this worker + enabled: false + + ## The number of instances of this worker to run + instances: 1 + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + receipts-account: + ## Set to true to deploy a single instance of this worker + enabled: false + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + sliding-sync: + ## Set to true to deploy instances of this worker + enabled: false + + ## The number of instances of this worker to run + instances: 1 + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + sso-login: + ## Set to true to deploy a single instance of this worker + enabled: false + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + synchrotron: + ## Set to true to deploy instances of this worker + enabled: false + + ## The number of instances of this worker to run + instances: 1 + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + typing-persister: + ## Set to true to deploy a single instance of this worker + enabled: false + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + user-dir: + ## Set to true to deploy a single instance of this worker + enabled: false + + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + + ## Synapse's logging settings + logging: + ## The maximum level of Synapse log output before any overrides + rootLevel: INFO + + ## Override the log level of specific loggers ## e.g. - ## imagePullSecrets: - ## - name: ess-pull-secret - imagePullSecrets: [] + ## levelOverrides: + ## synapse.util.caches.lrucache: WARNING + levelOverrides: {} + # Details of the image to be used + image: + ## The host and (optional) port of the container image registry for this component. + ## If not specified Docker Hub is implied + registry: docker.io + ## The path in the registry where the container image is located + repository: matrixdotorg/synapse - synapse: - enabled: true - ## Details of the Postgres Database to use - postgres: - ## PostgreSQL database host - # host: + ## The tag of the container image to use. + ## Defaults to the Chart's appVersion if not set + tag: v1.116.0 - ## PostgreSQL port - port: 5432 + ## Container digest to use. Used to pull the image instead of the image tag / Chart appVersion if set + # digest: - ## PostgreSQL username + ## Whether the image should be pulled on container startup. Valid values are Always, IfNotPresent and Never + ## If this isn't provided it defaults to Always when using the image tag / Chart appVersion or + ## IfNotPresent if using a digest + # pullPolicy: + + ## A list of pull secrets to use for this image + ## e.g. + ## pullSecrets: + ## - name: dockerhub + pullSecrets: [] + ## How this ingress should be constructed + ingress: + ## What hostname should be used for this Ingress + # host: + + ## Annotations to be added to this Ingress + annotations: {} + + ## What Ingress Class Name should be used for this Ingress + # className: + + ## The name of the Secret containing the TLS certificate and key should be used for this Ingress + # tlsSecret: + + ## How the service behind the ingress is constructed + service: + type: ClusterIP + ## Labels to add to all manifest in this chart + labels: {} + ## Defines the annotations to add to the workload + # annotations: {} + ## A subset of SecurityContext. ContainersSecurityContext holds pod-level security attributes and common container settings + containersSecurityContext: + ## Controls whether a process can gain more privileges than its parent process. + ## This bool directly controls whether the no_new_privs flag gets set on the container process. + ## allowPrivilegeEscalation is always true when the container is run as privileged, or has CAP_SYS_ADMIN + allowPrivilegeEscalation: false + + ## Give a process some privileges, but not all the privileges of the root user. + capabilities: + ## Privileges to add. + # add: [] + ## Privileges to drop. + drop: + - ALL + + ## Mounts the container's root filesystem as read-only. + readOnlyRootFilesystem: true + + ## To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. + ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. Valid options for type include RuntimeDefault, Unconfined, and Localhost. + ## localhostProfile must only be set set if type Localhost. It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). + seccompProfile: + type: RuntimeDefault + ## Defines additional environment variables to be injected onto this workload + ## e.g. + ## extraEnv: + ## - name: FOO + ## value: "bar" + extraEnv: [] + ## The list of hosts aliases to configure on the pod spec. + ## It should be avoid as much as possible to use this feature. + ## Please prefer using an DNS entry to resolve your hostnames. + ## This can be used as a workaround when entries cannot be resolved using DNS, for example for our automated testings. + ## e.g. + ## hostAliases: + ## - ip: 192.0.2.1 # An IP resolution to add to /etc/hosts + ## # A list of hostnames to be associated with the above IP + ## hostnames: + ## - ess.localhost + ## - synapse.ess.localhost + hostAliases: [] + ## NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + # nodeSelector: {} + ## A subset of PodSecurityContext. PodSecurityContext holds pod-level security attributes and common container settings + podSecurityContext: + ## A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to + ## change the ownership of that volume to be owned by the pod: + ## + ## 1. The owning GID will be the FSGroup + ## 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)## 3. The permission bits are OR'd with rw-rw---- + ## + ## If unset, the Kubelet will not modify the ownership and permissions of any volume. + fsGroup: 10091 + + ## fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. + ## This field will only apply to volume types which support fsGroup based ownership(and permissions). + ## It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. + # fsGroupChangePolicy: + + ## The GID to run the entrypoint of the container process. Uses runtime default if unset. + runAsGroup: 10091 + + ## Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. + runAsNonRoot: true + + ## The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. + runAsUser: 10091 + + ## SELinuxOptions are the labels to be applied to all the pod containers + # seLinuxOptions: + ## Level is SELinux level label that applies to the container. + # level: + + ## Role is a SELinux role label that applies to the container. + # role: + + ## Type is a SELinux type label that applies to the container. + # type: + + ## User is a SELinux user label that applies to the container. # user: - ## PostgreSQL database name - # database: + ## "To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. + ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. + ## Valid options for type include RuntimeDefault, Unconfined, and Localhost. localhostProfile must only be set set if type Localhost. + ## It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). + # seccompProfile: + # localhostProfile: + # type: - ## TLS settins to use for the PostgreSQL connection - sslMode: prefer + ## A list of groups applied to the first process run in each container, in addition to the container's primary GID. + ## If unspecified, no groups will be added to any container. + supplementalGroups: [] + ## Kubernetes resources to allocate to each instance. + resources: + ## Requests describes the minimum amount of compute resources required. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + requests: + memory: 100Mi + cpu: 100m - ## PostgreSQL password. - ## It can either be provided inline in the Helm chart e.g.: - ## password: - ## value: SecretValue - ## - ## Or it can be provided via an existing Secret e.g.: - ## password: - ## secret: existing-secret - ## secretKey: key-in-secret - password: {} - ## Configures the media store for Synapse - media: - ## Configures the PersistentVolumeClaim to be used for storage - storage: - ## Name of an existing PersistentVolumeClaim in this namespace that should be used - # existingClaim: + ## Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + limits: + memory: 4Gi + ## Controls configuration of the ServiceAccount for this component + serviceAccount: + ## Whether a ServiceAccount should be created by the chart or not + create: true - ## The size of a PersistentVolumeClaim to be constructed - ## Ignored if existingClaim is provided - size: 10Gi + ## What name to give the ServiceAccount. If not provided the chart will provide the name automatically + name: "" - ## The StorageClass to be used by the constructed PersistentVolumeClaim. - ## Will use the cluster default if not provided - ## Ignored if existingClaim is provided - # storageClass: - ## Key used to sign events and federation requests. - ## This needs to be the full signing key starting `ed25519 ...`. - ## It can either be provided inline in the Helm chart e.g.: - ## signingKey: - ## value: SecretValue - ## - ## Or it can be provided via an existing Secret e.g.: - ## signingKey: - ## secret: existing-secret - ## secretKey: key-in-secret - signingKey: {} - ## Shared Secret to registering users without having any users provisioned. - ## It can either be provided inline in the Helm chart e.g.: - ## registrationSharedSecret: - ## value: SecretValue - ## - ## Or it can be provided via an existing Secret e.g.: - ## registrationSharedSecret: - ## secret: existing-secret - ## secretKey: key-in-secret - registrationSharedSecret: {} - ## Secret used to sign Synapse issued tokens. - ## It can either be provided inline in the Helm chart e.g.: - ## macaroon: - ## value: SecretValue - ## - ## Or it can be provided via an existing Secret e.g.: - ## macaroon: - ## secret: existing-secret - ## secretKey: key-in-secret - macaroon: {} + ## Annotations to add to the service account + annotations: {} + ## Whether to deploy ServiceMonitors into the cluster for this component + ## Requires the ServiceMonitor CRDs to be in the cluster + serviceMonitors: + enabled: true + ## Workload tolerations + ## The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . + ## + ## * effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + ## * key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + ## * operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + ## * value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + ## + ## * tolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + ## e.g. + ## tolerations: + ## - effect: + ## key: + ## operator: + ## value: - ## Additional configuration to provide to all Synapse processes. - ## This can be provided in-line in the Helm Chart and/or via an existing Secret - ## e.g. - ## additional: - ## config: | - ## allow_guest_access: true - ## - ## or - ## additional: - ## configSecret: custom-synapse-config - ## configSecretKey: shared.yaml - additional: {} + tolerations: [] - ## Details of Application Service registration files to give to Synapse - ## e.g. - ## appservices: - ## - registrationFileConfigMap: test-appservice - appservices: [] - - ## Additional Synapse processes managed by this chart - ## e.g. - ## workers: - ## client-reader: - ## instances: 2 - ## event-creator: {} - workers: - appservice: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - background: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - client-reader: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - encryption: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - event-creator: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - event-persister: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - federation-reader: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - federation-sender: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - initial-synchrotron: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - media-repository: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - presence-writer: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - pusher: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - receipts-account: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - sliding-sync: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - sso-login: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - synchrotron: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - typing-persister: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - user-dir: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - - ## Synapse's logging settings - logging: - ## The maximum level of Synapse log output before any overrides - rootLevel: INFO - - ## Override the log level of specific loggers - ## e.g. - ## levelOverrides: - ## synapse.util.caches.lrucache: WARNING - levelOverrides: {} + haproxy: + replicas: 2 # Details of the image to be used image: ## The host and (optional) port of the container image registry for this component. @@ -501,11 +667,11 @@ synapse: registry: docker.io ## The path in the registry where the container image is located - repository: matrixdotorg/synapse + repository: library/haproxy ## The tag of the container image to use. ## Defaults to the Chart's appVersion if not set - # tag: + tag: 3.0-alpine ## Container digest to use. Used to pull the image instead of the image tag / Chart appVersion if set # digest: @@ -520,23 +686,6 @@ synapse: ## pullSecrets: ## - name: dockerhub pullSecrets: [] - ## How this ingress should be constructed - ingress: - ## What hostname should be used for this Ingress - # host: - - ## Annotations to be added to this Ingress - annotations: {} - - ## What Ingress Class Name should be used for this Ingress - # className: - - ## The name of the Secret containing the TLS certificate and key should be used for this Ingress - # tlsSecret: - - ## How the service behind the ingress is constructed - service: - type: ClusterIP ## Labels to add to all manifest in this chart labels: {} ## Defines the annotations to add to the workload @@ -564,24 +713,6 @@ synapse: ## localhostProfile must only be set set if type Localhost. It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). seccompProfile: type: RuntimeDefault - ## Defines additional environment variables to be injected onto this workload - ## e.g. - ## extraEnv: - ## - name: FOO - ## value: "bar" - extraEnv: [] - ## The list of hosts aliases to configure on the pod spec. - ## It should be avoid as much as possible to use this feature. - ## Please prefer using an DNS entry to resolve your hostnames. - ## This can be used as a workaround when entries cannot be resolved using DNS, for example for our automated testings. - ## e.g. - ## hostAliases: - ## - ip: 192.0.2.1 # An IP resolution to add to /etc/hosts - ## # A list of hostnames to be associated with the above IP - ## hostnames: - ## - ess.localhost - ## - synapse.ess.localhost - hostAliases: [] ## NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # nodeSelector: {} ## A subset of PodSecurityContext. PodSecurityContext holds pod-level security attributes and common container settings @@ -593,7 +724,7 @@ synapse: ## 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)## 3. The permission bits are OR'd with rw-rw---- ## ## If unset, the Kubelet will not modify the ownership and permissions of any volume. - fsGroup: 10091 + fsGroup: 10001 ## fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. ## This field will only apply to volume types which support fsGroup based ownership(and permissions). @@ -601,13 +732,13 @@ synapse: # fsGroupChangePolicy: ## The GID to run the entrypoint of the container process. Uses runtime default if unset. - runAsGroup: 10091 + runAsGroup: 10001 ## Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. runAsNonRoot: true ## The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. - runAsUser: 10091 + runAsUser: 10001 ## SELinuxOptions are the labels to be applied to all the pod containers # seLinuxOptions: @@ -643,7 +774,7 @@ synapse: ## Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ limits: - memory: 4Gi + memory: 200Mi ## Controls configuration of the ServiceAccount for this component serviceAccount: ## Whether a ServiceAccount should be created by the chart or not @@ -676,295 +807,146 @@ synapse: tolerations: [] - haproxy: - replicas: 2 - # Details of the image to be used - image: - ## The host and (optional) port of the container image registry for this component. - ## If not specified Docker Hub is implied - registry: docker.io + redis: + # Details of the image to be used + image: + ## The host and (optional) port of the container image registry for this component. + ## If not specified Docker Hub is implied + registry: docker.io - ## The path in the registry where the container image is located - repository: library/haproxy + ## The path in the registry where the container image is located + repository: library/redis - ## The tag of the container image to use. - ## Defaults to the Chart's appVersion if not set - tag: 3.0-alpine + ## The tag of the container image to use. + ## Defaults to the Chart's appVersion if not set + tag: 7.4-alpine - ## Container digest to use. Used to pull the image instead of the image tag / Chart appVersion if set - # digest: + ## Container digest to use. Used to pull the image instead of the image tag / Chart appVersion if set + # digest: - ## Whether the image should be pulled on container startup. Valid values are Always, IfNotPresent and Never - ## If this isn't provided it defaults to Always when using the image tag / Chart appVersion or - ## IfNotPresent if using a digest - # pullPolicy: + ## Whether the image should be pulled on container startup. Valid values are Always, IfNotPresent and Never + ## If this isn't provided it defaults to Always when using the image tag / Chart appVersion or + ## IfNotPresent if using a digest + # pullPolicy: - ## A list of pull secrets to use for this image - ## e.g. - ## pullSecrets: - ## - name: dockerhub - pullSecrets: [] - ## Labels to add to all manifest in this chart - labels: {} - ## Defines the annotations to add to the workload - # annotations: {} - ## A subset of SecurityContext. ContainersSecurityContext holds pod-level security attributes and common container settings - containersSecurityContext: - ## Controls whether a process can gain more privileges than its parent process. - ## This bool directly controls whether the no_new_privs flag gets set on the container process. - ## allowPrivilegeEscalation is always true when the container is run as privileged, or has CAP_SYS_ADMIN - allowPrivilegeEscalation: false - - ## Give a process some privileges, but not all the privileges of the root user. - capabilities: - ## Privileges to add. - # add: [] - ## Privileges to drop. - drop: - - ALL - - ## Mounts the container's root filesystem as read-only. - readOnlyRootFilesystem: true - - ## To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. - ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. Valid options for type include RuntimeDefault, Unconfined, and Localhost. - ## localhostProfile must only be set set if type Localhost. It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). - seccompProfile: - type: RuntimeDefault - ## NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - # nodeSelector: {} - ## A subset of PodSecurityContext. PodSecurityContext holds pod-level security attributes and common container settings - podSecurityContext: - ## A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to - ## change the ownership of that volume to be owned by the pod: - ## - ## 1. The owning GID will be the FSGroup - ## 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)## 3. The permission bits are OR'd with rw-rw---- - ## - ## If unset, the Kubelet will not modify the ownership and permissions of any volume. - fsGroup: 10001 - - ## fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. - ## This field will only apply to volume types which support fsGroup based ownership(and permissions). - ## It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. - # fsGroupChangePolicy: - - ## The GID to run the entrypoint of the container process. Uses runtime default if unset. - runAsGroup: 10001 - - ## Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. - runAsNonRoot: true - - ## The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. - runAsUser: 10001 - - ## SELinuxOptions are the labels to be applied to all the pod containers - # seLinuxOptions: - ## Level is SELinux level label that applies to the container. - # level: - - ## Role is a SELinux role label that applies to the container. - # role: - - ## Type is a SELinux type label that applies to the container. - # type: - - ## User is a SELinux user label that applies to the container. - # user: - - ## "To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. - ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. - ## Valid options for type include RuntimeDefault, Unconfined, and Localhost. localhostProfile must only be set set if type Localhost. - ## It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). - # seccompProfile: - # localhostProfile: - # type: - - ## A list of groups applied to the first process run in each container, in addition to the container's primary GID. - ## If unspecified, no groups will be added to any container. - supplementalGroups: [] - ## Kubernetes resources to allocate to each instance. - resources: - ## Requests describes the minimum amount of compute resources required. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - requests: - memory: 100Mi - cpu: 100m - - ## Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - limits: - memory: 200Mi - ## Controls configuration of the ServiceAccount for this component - serviceAccount: - ## Whether a ServiceAccount should be created by the chart or not - create: true - - ## What name to give the ServiceAccount. If not provided the chart will provide the name automatically - name: "" - - ## Annotations to add to the service account - annotations: {} - ## Whether to deploy ServiceMonitors into the cluster for this component - ## Requires the ServiceMonitor CRDs to be in the cluster - serviceMonitors: - enabled: true - ## Workload tolerations - ## The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . - ## - ## * effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - ## * key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - ## * operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - ## * value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - ## - ## * tolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + ## A list of pull secrets to use for this image ## e.g. - ## tolerations: - ## - effect: - ## key: - ## operator: - ## value: + ## pullSecrets: + ## - name: dockerhub + pullSecrets: [] + ## Labels to add to all manifest in this chart + labels: {} + ## Defines the annotations to add to the workload + # annotations: {} + ## A subset of SecurityContext. ContainersSecurityContext holds pod-level security attributes and common container settings + containersSecurityContext: + ## Controls whether a process can gain more privileges than its parent process. + ## This bool directly controls whether the no_new_privs flag gets set on the container process. + ## allowPrivilegeEscalation is always true when the container is run as privileged, or has CAP_SYS_ADMIN + allowPrivilegeEscalation: false - tolerations: [] + ## Give a process some privileges, but not all the privileges of the root user. + capabilities: + ## Privileges to add. + # add: [] + ## Privileges to drop. + drop: + - ALL - redis: - # Details of the image to be used - image: - ## The host and (optional) port of the container image registry for this component. - ## If not specified Docker Hub is implied - registry: docker.io + ## Mounts the container's root filesystem as read-only. + readOnlyRootFilesystem: true - ## The path in the registry where the container image is located - repository: library/redis - - ## The tag of the container image to use. - ## Defaults to the Chart's appVersion if not set - tag: 7.4-alpine - - ## Container digest to use. Used to pull the image instead of the image tag / Chart appVersion if set - # digest: - - ## Whether the image should be pulled on container startup. Valid values are Always, IfNotPresent and Never - ## If this isn't provided it defaults to Always when using the image tag / Chart appVersion or - ## IfNotPresent if using a digest - # pullPolicy: - - ## A list of pull secrets to use for this image - ## e.g. - ## pullSecrets: - ## - name: dockerhub - pullSecrets: [] - ## Labels to add to all manifest in this chart - labels: {} - ## Defines the annotations to add to the workload - # annotations: {} - ## A subset of SecurityContext. ContainersSecurityContext holds pod-level security attributes and common container settings - containersSecurityContext: - ## Controls whether a process can gain more privileges than its parent process. - ## This bool directly controls whether the no_new_privs flag gets set on the container process. - ## allowPrivilegeEscalation is always true when the container is run as privileged, or has CAP_SYS_ADMIN - allowPrivilegeEscalation: false - - ## Give a process some privileges, but not all the privileges of the root user. - capabilities: - ## Privileges to add. - # add: [] - ## Privileges to drop. - drop: - - ALL - - ## Mounts the container's root filesystem as read-only. - readOnlyRootFilesystem: true - - ## To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. - ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. Valid options for type include RuntimeDefault, Unconfined, and Localhost. - ## localhostProfile must only be set set if type Localhost. It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). - seccompProfile: - type: RuntimeDefault - ## NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - # nodeSelector: {} - ## A subset of PodSecurityContext. PodSecurityContext holds pod-level security attributes and common container settings - podSecurityContext: - ## A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to - ## change the ownership of that volume to be owned by the pod: - ## - ## 1. The owning GID will be the FSGroup - ## 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)## 3. The permission bits are OR'd with rw-rw---- - ## - ## If unset, the Kubelet will not modify the ownership and permissions of any volume. - fsGroup: 10002 - - ## fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. - ## This field will only apply to volume types which support fsGroup based ownership(and permissions). - ## It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. - # fsGroupChangePolicy: - - ## The GID to run the entrypoint of the container process. Uses runtime default if unset. - runAsGroup: 10002 - - ## Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. - runAsNonRoot: true - - ## The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. - runAsUser: 10002 - - ## SELinuxOptions are the labels to be applied to all the pod containers - # seLinuxOptions: - ## Level is SELinux level label that applies to the container. - # level: - - ## Role is a SELinux role label that applies to the container. - # role: - - ## Type is a SELinux type label that applies to the container. - # type: - - ## User is a SELinux user label that applies to the container. - # user: - - ## "To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. - ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. - ## Valid options for type include RuntimeDefault, Unconfined, and Localhost. localhostProfile must only be set set if type Localhost. - ## It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). - # seccompProfile: - # localhostProfile: - # type: - - ## A list of groups applied to the first process run in each container, in addition to the container's primary GID. - ## If unspecified, no groups will be added to any container. - supplementalGroups: [] - ## Kubernetes resources to allocate to each instance. - resources: - ## Requests describes the minimum amount of compute resources required. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - requests: - memory: 50Mi - cpu: 50m - - ## Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - limits: - memory: 50Mi - ## Controls configuration of the ServiceAccount for this component - serviceAccount: - ## Whether a ServiceAccount should be created by the chart or not - create: true - - ## What name to give the ServiceAccount. If not provided the chart will provide the name automatically - name: "" - - ## Annotations to add to the service account - annotations: {} - ## Workload tolerations - ## The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . + ## To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. + ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. Valid options for type include RuntimeDefault, Unconfined, and Localhost. + ## localhostProfile must only be set set if type Localhost. It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). + seccompProfile: + type: RuntimeDefault + ## NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + # nodeSelector: {} + ## A subset of PodSecurityContext. PodSecurityContext holds pod-level security attributes and common container settings + podSecurityContext: + ## A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to + ## change the ownership of that volume to be owned by the pod: ## - ## * effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - ## * key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - ## * operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - ## * value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + ## 1. The owning GID will be the FSGroup + ## 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)## 3. The permission bits are OR'd with rw-rw---- ## - ## * tolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - ## e.g. - ## tolerations: - ## - effect: - ## key: - ## operator: - ## value: + ## If unset, the Kubelet will not modify the ownership and permissions of any volume. + fsGroup: 10002 - tolerations: [] + ## fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. + ## This field will only apply to volume types which support fsGroup based ownership(and permissions). + ## It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. + # fsGroupChangePolicy: + + ## The GID to run the entrypoint of the container process. Uses runtime default if unset. + runAsGroup: 10002 + + ## Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. + runAsNonRoot: true + + ## The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. + runAsUser: 10002 + + ## SELinuxOptions are the labels to be applied to all the pod containers + # seLinuxOptions: + ## Level is SELinux level label that applies to the container. + # level: + + ## Role is a SELinux role label that applies to the container. + # role: + + ## Type is a SELinux type label that applies to the container. + # type: + + ## User is a SELinux user label that applies to the container. + # user: + + ## "To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. + ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. + ## Valid options for type include RuntimeDefault, Unconfined, and Localhost. localhostProfile must only be set set if type Localhost. + ## It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). + # seccompProfile: + # localhostProfile: + # type: + + ## A list of groups applied to the first process run in each container, in addition to the container's primary GID. + ## If unspecified, no groups will be added to any container. + supplementalGroups: [] + ## Kubernetes resources to allocate to each instance. + resources: + ## Requests describes the minimum amount of compute resources required. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + requests: + memory: 50Mi + cpu: 50m + + ## Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + limits: + memory: 50Mi + ## Controls configuration of the ServiceAccount for this component + serviceAccount: + ## Whether a ServiceAccount should be created by the chart or not + create: true + + ## What name to give the ServiceAccount. If not provided the chart will provide the name automatically + name: "" + + ## Annotations to add to the service account + annotations: {} + ## Workload tolerations + ## The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . + ## + ## * effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + ## * key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + ## * operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + ## * value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + ## + ## * tolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + ## e.g. + ## tolerations: + ## - effect: + ## key: + ## operator: + ## value: + + tolerations: [] diff --git a/charts/synapse/.helmignore b/charts/synapse/.helmignore deleted file mode 100644 index 3cb30605..00000000 --- a/charts/synapse/.helmignore +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright 2024 New Vector Ltd -# -# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial - -.helmignore -synapse-*.tgz -source/ -user_values/ diff --git a/charts/synapse/Chart.lock b/charts/synapse/Chart.lock deleted file mode 100644 index a573c0bc..00000000 --- a/charts/synapse/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: ess-library - repository: file://../ess-library - version: 0.0.0-dev -digest: sha256:1f7a32667f6336fd19d1b6e3a24fd2cb51f3d728bf5ec086d7718c5350352f26 -generated: "2024-11-20T09:08:36.320541167Z" diff --git a/charts/synapse/Chart.yaml b/charts/synapse/Chart.yaml deleted file mode 100644 index 57d1a377..00000000 --- a/charts/synapse/Chart.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright 2024 New Vector Ltd -# -# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial - -apiVersion: v2 -name: synapse -description: A Helm chart for deploying Synapse -type: application -version: "0.0.0-dev" -appVersion: "v1.116.0" -dependencies: - - name: ess-library - repository: file://../ess-library - version: 0.0.0-dev diff --git a/charts/synapse/source/values.schema.json b/charts/synapse/source/values.schema.json deleted file mode 100644 index 090d0447..00000000 --- a/charts/synapse/source/values.schema.json +++ /dev/null @@ -1,289 +0,0 @@ -{ - "$id": "file://synapse", - "$schema": "https://json-schema.org/draft/2020-12/schema", - "type": "object", - "properties": { - "global": { - "$ref": "file://./../../matrix-stack/sub_schemas/global.json" - }, - "ess": { - "$ref": "file://./../../matrix-stack/sub_schemas/ess.json" - }, - "ess-library": { - "type": "object", - "additionalProperties": true - }, - "synapse": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "postgres": { - "$ref": "file://./../../matrix-stack/sub_schemas/postgres-libpq.json" - }, - "media": { - "type": "object", - "properties": { - "storage": { - "$ref": "file://./../../matrix-stack/sub_schemas/persistentVolumeClaim.json" - } - } - }, - "macaroon": { - "$ref": "file://./../../matrix-stack/sub_schemas/credential.json" - }, - "registrationSharedSecret": { - "$ref": "file://./../../matrix-stack/sub_schemas/credential.json" - }, - "signingKey": { - "$ref": "file://./../../matrix-stack/sub_schemas/credential.json" - }, - "additional": { - "type": "object", - "anyOf": [ - { - "required": [] - }, - { - "required": [ - "config" - ] - }, - { - "required": [ - "configSecret", - "configSecretKey" - ] - } - ], - "properties": { - "config": { - "type": "string" - }, - "configSecret": { - "type": "string" - }, - "configSecretKey": { - "type": "string" - } - } - }, - "appservices": { - "type": "array", - "items": { - "type": "object", - "properties": { - "registrationFileConfigMap": { - "type": "string" - } - } - } - }, - "logging": { - "type": "object", - "properties": { - "rootLevel": { - "type": "string", - "enum": [ - "CRITICAL", - "ERROR", - "WARNING", - "INFO", - "DEBUG" - ] - }, - "levelOverrides": { - "type": "object", - "additionalProperties": { - "type": "string", - "enum": [ - "CRITICAL", - "ERROR", - "WARNING", - "INFO", - "DEBUG" - ] - } - } - } - }, - "global": { - "$ref": "file://./../../matrix-stack/sub_schemas/global.json" - }, - "ess-library": { - "$ref": "file://./../../matrix-stack/sub_schemas/essLibrary.json" - }, - "ingress": { - "$ref": "file://sub_schemas/ingress_with_additional_paths.json" - }, - "image": { - "$ref": "file://./../../matrix-stack/sub_schemas/image.json" - }, - "labels": { - "$ref": "file://./../../matrix-stack/sub_schemas/labels.json" - }, - "annotations": { - "$ref": "file://./../../matrix-stack/sub_schemas/workloadAnnotations.json" - }, - "containersSecurityContext": { - "$ref": "file://./../../matrix-stack/sub_schemas/containersSecurityContext.json" - }, - "extraEnv": { - "$ref": "file://./../../matrix-stack/sub_schemas/extraEnv.json" - }, - "hostAliases": { - "$ref": "file://./../../matrix-stack/sub_schemas/hostAliases.json" - }, - "nodeSelector": { - "$ref": "file://./../../matrix-stack/sub_schemas/nodeSelector.json" - }, - "podSecurityContext": { - "$ref": "file://./../../matrix-stack/sub_schemas/podSecurityContext.json" - }, - "resources": { - "$ref": "file://./../../matrix-stack/sub_schemas/resources.json" - }, - "serviceAccount": { - "$ref": "file://./../../matrix-stack/sub_schemas/serviceAccount.json" - }, - "serviceMonitors": { - "$ref": "file://./../../matrix-stack/sub_schemas/serviceMonitors.json" - }, - "tolerations": { - "$ref": "file://./../../matrix-stack/sub_schemas/tolerations.json" - }, - "workers": { - "type": "object", - "properties": { - "appservice": { - "$ref": "file://sub_schemas/single_worker.json" - }, - "background": { - "$ref": "file://sub_schemas/single_worker.json" - }, - "client-reader": { - "$ref": "file://sub_schemas/scalable_worker.json" - }, - "encryption": { - "$ref": "file://sub_schemas/single_worker.json" - }, - "event-creator": { - "$ref": "file://sub_schemas/scalable_worker.json" - }, - "event-persister": { - "$ref": "file://sub_schemas/scalable_worker.json" - }, - "federation-reader": { - "$ref": "file://sub_schemas/scalable_worker.json" - }, - "federation-sender": { - "$ref": "file://sub_schemas/scalable_worker.json" - }, - "initial-synchrotron": { - "$ref": "file://sub_schemas/scalable_worker.json" - }, - "media-repository": { - "$ref": "file://sub_schemas/single_worker.json" - }, - "presence-writer": { - "$ref": "file://sub_schemas/single_worker.json" - }, - "pusher": { - "$ref": "file://sub_schemas/scalable_worker.json" - }, - "receipts-account": { - "$ref": "file://sub_schemas/single_worker.json" - }, - "sliding-sync": { - "$ref": "file://sub_schemas/scalable_worker.json" - }, - "sso-login": { - "$ref": "file://sub_schemas/single_worker.json" - }, - "synchrotron": { - "$ref": "file://sub_schemas/scalable_worker.json" - }, - "typing-persister": { - "$ref": "file://sub_schemas/single_worker.json" - }, - "user-dir": { - "$ref": "file://sub_schemas/single_worker.json" - } - } - }, - "haproxy": { - "type": "object", - "properties": { - "replicas": { - "minimum": 1, - "type": "integer" - }, - "image": { - "$ref": "file://./../../matrix-stack/sub_schemas/image.json" - }, - "labels": { - "$ref": "file://./../../matrix-stack/sub_schemas/labels.json" - }, - "annotations": { - "$ref": "file://./../../matrix-stack/sub_schemas/workloadAnnotations.json" - }, - "containersSecurityContext": { - "$ref": "file://./../../matrix-stack/sub_schemas/containersSecurityContext.json" - }, - "nodeSelector": { - "$ref": "file://./../../matrix-stack/sub_schemas/nodeSelector.json" - }, - "podSecurityContext": { - "$ref": "file://./../../matrix-stack/sub_schemas/podSecurityContext.json" - }, - "resources": { - "$ref": "file://./../../matrix-stack/sub_schemas/resources.json" - }, - "serviceAccount": { - "$ref": "file://./../../matrix-stack/sub_schemas/serviceAccount.json" - }, - "serviceMonitors": { - "$ref": "file://./../../matrix-stack/sub_schemas/serviceMonitors.json" - }, - "tolerations": { - "$ref": "file://./../../matrix-stack/sub_schemas/tolerations.json" - } - } - }, - "redis": { - "type": "object", - "properties": { - "image": { - "$ref": "file://./../../matrix-stack/sub_schemas/image.json" - }, - "labels": { - "$ref": "file://./../../matrix-stack/sub_schemas/labels.json" - }, - "annotations": { - "$ref": "file://./../../matrix-stack/sub_schemas/workloadAnnotations.json" - }, - "containersSecurityContext": { - "$ref": "file://./../../matrix-stack/sub_schemas/containersSecurityContext.json" - }, - "nodeSelector": { - "$ref": "file://./../../matrix-stack/sub_schemas/nodeSelector.json" - }, - "podSecurityContext": { - "$ref": "file://./../../matrix-stack/sub_schemas/podSecurityContext.json" - }, - "resources": { - "$ref": "file://./../../matrix-stack/sub_schemas/resources.json" - }, - "serviceAccount": { - "$ref": "file://./../../matrix-stack/sub_schemas/serviceAccount.json" - }, - "tolerations": { - "$ref": "file://./../../matrix-stack/sub_schemas/tolerations.json" - } - } - } - } - } - } -} diff --git a/charts/synapse/source/values.yaml.j2 b/charts/synapse/source/values.yaml.j2 deleted file mode 100644 index 04569552..00000000 --- a/charts/synapse/source/values.yaml.j2 +++ /dev/null @@ -1,116 +0,0 @@ -{# -Copyright 2024 New Vector Ltd - -SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial -#} - -{% import 'sub_schema_values.yaml.j2' as sub_schema_values -%} -{% import 'synapse_sub_schema_values.yaml.j2' as synapse_sub_schema_values -%} -{{- sub_schema_values.generatedFileWarning() }} - -{{- sub_schema_values.ess() }} - - -synapse: - enabled: true - {{- sub_schema_values.postgresLibPQ() | indent(2) }} - ## Configures the media store for Synapse - media: - {{- sub_schema_values.persistentVolumeClaim("storage") | indent(4) }} - - {{- sub_schema_values.credential("Key used to sign events and federation requests.\n## This needs to be the full signing key starting `ed25519 ...`", "signingKey") | indent(2) }} - {{- sub_schema_values.credential("Shared Secret to registering users without having any users provisioned", "registrationSharedSecret") | indent(2) }} - {{- sub_schema_values.credential("Secret used to sign Synapse issued tokens", "macaroon") | indent(2) }} - - ## Additional configuration to provide to all Synapse processes. - ## This can be provided in-line in the Helm Chart and/or via an existing Secret - ## e.g. - ## additional: - ## config: | - ## allow_guest_access: true - ## - ## or - ## additional: - ## configSecret: custom-synapse-config - ## configSecretKey: shared.yaml - additional: {} - - ## Details of Application Service registration files to give to Synapse - ## e.g. - ## appservices: - ## - registrationFileConfigMap: test-appservice - appservices: [] - - ## Additional Synapse processes managed by this chart - ## e.g. - ## workers: - ## client-reader: - ## instances: 2 - ## event-creator: {} - workers: - {{- synapse_sub_schema_values.single_worker('appservice') | indent(4) }} - {{- synapse_sub_schema_values.single_worker('background') | indent(4) }} - {{- synapse_sub_schema_values.scalable_worker('client-reader') | indent(4) }} - {{- synapse_sub_schema_values.single_worker('encryption') | indent(4) }} - {{- synapse_sub_schema_values.scalable_worker('event-creator') | indent(4) }} - {{- synapse_sub_schema_values.scalable_worker('event-persister') | indent(4) }} - {{- synapse_sub_schema_values.scalable_worker('federation-reader') | indent(4) }} - {{- synapse_sub_schema_values.scalable_worker('federation-sender') | indent(4) }} - {{- synapse_sub_schema_values.scalable_worker('initial-synchrotron') | indent(4) }} - {{- synapse_sub_schema_values.single_worker('media-repository') | indent(4) }} - {{- synapse_sub_schema_values.single_worker('presence-writer') | indent(4) }} - {{- synapse_sub_schema_values.scalable_worker('pusher') | indent(4) }} - {{- synapse_sub_schema_values.single_worker('receipts-account') | indent(4) }} - {{- synapse_sub_schema_values.scalable_worker('sliding-sync') | indent(4) }} - {{- synapse_sub_schema_values.single_worker('sso-login') | indent(4) }} - {{- synapse_sub_schema_values.scalable_worker('synchrotron') | indent(4) }} - {{- synapse_sub_schema_values.single_worker('typing-persister') | indent(4) }} - {{- synapse_sub_schema_values.single_worker('user-dir') | indent(4) }} - - ## Synapse's logging settings - logging: - ## The maximum level of Synapse log output before any overrides - rootLevel: INFO - - ## Override the log level of specific loggers - ## e.g. - ## levelOverrides: - ## synapse.util.caches.lrucache: WARNING - levelOverrides: {} - {{- sub_schema_values.image(registry='docker.io', repository='matrixdotorg/synapse') | indent(2) }} - {{- sub_schema_values.ingress() | indent(2) }} - {{- sub_schema_values.labels() | indent(2) }} - {{- sub_schema_values.workloadAnnotations() | indent(2) }} - {{- sub_schema_values.containersSecurityContext() | indent(2) }} - {{- sub_schema_values.extraEnv() | indent(2) }} - {{- sub_schema_values.hostAliases() | indent(2) }} - {{- sub_schema_values.nodeSelector() | indent(2) }} - {{- sub_schema_values.podSecurityContext(user_id='10091', group_id='10091') | indent(2) }} - {{- sub_schema_values.resources(requests_memory='100Mi', requests_cpu='100m', limits_memory='4Gi') | indent(2) }} - {{- sub_schema_values.serviceAccount() | indent(2) }} - {{- sub_schema_values.serviceMonitors() | indent(2) }} - {{- sub_schema_values.tolerations() | indent(2) }} - - haproxy: - replicas: 2 - {{- sub_schema_values.image(registry='docker.io', repository='library/haproxy', tag='3.0-alpine') | indent(4) }} - {{- sub_schema_values.labels() | indent(4) }} - {{- sub_schema_values.workloadAnnotations() | indent(4) }} - {{- sub_schema_values.containersSecurityContext() | indent(4) }} - {{- sub_schema_values.nodeSelector() | indent(4) }} - {{- sub_schema_values.podSecurityContext(user_id='10001', group_id='10001') | indent(4) }} - {{- sub_schema_values.resources(requests_memory='100Mi', requests_cpu='100m', limits_memory='200Mi') | indent(4) }} - {{- sub_schema_values.serviceAccount() | indent(4) }} - {{- sub_schema_values.serviceMonitors() | indent(4) }} - {{- sub_schema_values.tolerations() | indent(4) }} - - redis: - {{- sub_schema_values.image(registry='docker.io', repository='library/redis', tag='7.4-alpine') | indent(4) }} - {{- sub_schema_values.labels() | indent(4) }} - {{- sub_schema_values.workloadAnnotations() | indent(4) }} - {{- sub_schema_values.containersSecurityContext() | indent(4) }} - {{- sub_schema_values.nodeSelector() | indent(4) }} - {{- sub_schema_values.podSecurityContext(user_id='10002', group_id='10002') | indent(4) }} - {{- sub_schema_values.resources(requests_memory='50Mi', requests_cpu='50m', limits_memory='50Mi') | indent(4) }} - {{- sub_schema_values.serviceAccount() | indent(4) }} - {{- sub_schema_values.tolerations() | indent(4) }} diff --git a/charts/synapse/user_values/.gitkeep b/charts/synapse/user_values/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/charts/synapse/values.schema.json b/charts/synapse/values.schema.json deleted file mode 100644 index 8e753cf2..00000000 --- a/charts/synapse/values.schema.json +++ /dev/null @@ -1,2084 +0,0 @@ -{ - "$id": "file://synapse", - "$schema": "https://json-schema.org/draft/2020-12/schema", - "type": "object", - "properties": { - "global": { - "type": "object", - "additionalProperties": true, - "properties": { - "ess": { - "type": "object", - "properties": { - "server_name": { - "type": "string" - }, - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "imagePullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "ess": { - "type": "object", - "additionalProperties": true, - "properties": { - "serverName": { - "type": "string" - }, - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "imagePullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - } - }, - "ess-library": { - "type": "object", - "additionalProperties": true - }, - "synapse": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "postgres": { - "type": "object", - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "user": { - "type": "string" - }, - "database": { - "type": "string" - }, - "sslMode": { - "type": "string", - "enum": [ - "disable", - "allow", - "prefer", - "require", - "verify-ca", - "verify-full" - ] - }, - "password": { - "type": "object", - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - }, - "media": { - "type": "object", - "properties": { - "storage": { - "type": "object", - "properties": { - "existingClaim": { - "type": "string" - }, - "size": { - "type": "string" - }, - "storageClass": { - "type": "string" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - }, - "macaroon": { - "type": "object", - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false - }, - "registrationSharedSecret": { - "type": "object", - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false - }, - "signingKey": { - "type": "object", - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false - }, - "additional": { - "type": "object", - "anyOf": [ - { - "required": [] - }, - { - "required": [ - "config" - ] - }, - { - "required": [ - "configSecret", - "configSecretKey" - ] - } - ], - "properties": { - "config": { - "type": "string" - }, - "configSecret": { - "type": "string" - }, - "configSecretKey": { - "type": "string" - } - }, - "additionalProperties": false - }, - "appservices": { - "type": "array", - "items": { - "type": "object", - "properties": { - "registrationFileConfigMap": { - "type": "string" - } - }, - "additionalProperties": false - } - }, - "logging": { - "type": "object", - "properties": { - "rootLevel": { - "type": "string", - "enum": [ - "CRITICAL", - "ERROR", - "WARNING", - "INFO", - "DEBUG" - ] - }, - "levelOverrides": { - "type": "object", - "additionalProperties": { - "type": "string", - "enum": [ - "CRITICAL", - "ERROR", - "WARNING", - "INFO", - "DEBUG" - ] - } - } - }, - "additionalProperties": false - }, - "global": { - "type": "object", - "additionalProperties": true, - "properties": { - "ess": { - "type": "object", - "properties": { - "server_name": { - "type": "string" - }, - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "imagePullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "ess-library": { - "type": "object", - "additionalProperties": true - }, - "ingress": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "host": { - "type": "string" - }, - "className": { - "type": "string" - }, - "tlsSecret": { - "type": "string" - }, - "service": { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "ClusterIP", - "NodePort", - "LoadBalancer" - ] - } - }, - "additionalProperties": false - }, - "additionalPaths": { - "type": "array", - "items": { - "type": "object", - "required": [ - "path", - "availability" - ], - "properties": { - "path": { - "type": "string" - }, - "availability": { - "type": "string", - "enum": [ - "internally_and_externally", - "only_externally", - "blocked" - ] - }, - "service": { - "type": "object", - "required": [ - "name", - "port" - ], - "properties": { - "name": { - "type": "string" - }, - "port": { - "type": "object", - "oneOf": [ - { - "required": [ - "name" - ], - "not": { - "required": [ - "number" - ] - } - }, - { - "required": [ - "number" - ], - "not": { - "required": [ - "name" - ] - } - } - ], - "properties": { - "name": { - "type": "string" - }, - "number": { - "type": "integer" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "image": { - "type": "object", - "required": [ - "repository" - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": "string" - }, - "digest": { - "type": "string" - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } - }, - "hostAliases": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ip": { - "type": "string" - }, - "hostnames": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false - }, - "serviceMonitors": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "workers": { - "type": "object", - "properties": { - "appservice": { - "properties": { - "enabled": { - "type": "boolean" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "background": { - "properties": { - "enabled": { - "type": "boolean" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "client-reader": { - "required": [ - "instances" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "instances": { - "type": "integer", - "minimum": 1 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "encryption": { - "properties": { - "enabled": { - "type": "boolean" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "event-creator": { - "required": [ - "instances" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "instances": { - "type": "integer", - "minimum": 1 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "event-persister": { - "required": [ - "instances" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "instances": { - "type": "integer", - "minimum": 1 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "federation-reader": { - "required": [ - "instances" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "instances": { - "type": "integer", - "minimum": 1 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "federation-sender": { - "required": [ - "instances" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "instances": { - "type": "integer", - "minimum": 1 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "initial-synchrotron": { - "required": [ - "instances" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "instances": { - "type": "integer", - "minimum": 1 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "media-repository": { - "properties": { - "enabled": { - "type": "boolean" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "presence-writer": { - "properties": { - "enabled": { - "type": "boolean" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "pusher": { - "required": [ - "instances" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "instances": { - "type": "integer", - "minimum": 1 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "receipts-account": { - "properties": { - "enabled": { - "type": "boolean" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "sliding-sync": { - "required": [ - "instances" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "instances": { - "type": "integer", - "minimum": 1 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "sso-login": { - "properties": { - "enabled": { - "type": "boolean" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "synchrotron": { - "required": [ - "instances" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "instances": { - "type": "integer", - "minimum": 1 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "typing-persister": { - "properties": { - "enabled": { - "type": "boolean" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "user-dir": { - "properties": { - "enabled": { - "type": "boolean" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false - }, - "haproxy": { - "type": "object", - "properties": { - "replicas": { - "minimum": 1, - "type": "integer" - }, - "image": { - "type": "object", - "required": [ - "repository" - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": "string" - }, - "digest": { - "type": "string" - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false - }, - "serviceMonitors": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "redis": { - "type": "object", - "properties": { - "image": { - "type": "object", - "required": [ - "repository" - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": "string" - }, - "digest": { - "type": "string" - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false - }, - "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false - }, - "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false -} diff --git a/charts/synapse/values.yaml b/charts/synapse/values.yaml deleted file mode 100644 index d8029e75..00000000 --- a/charts/synapse/values.yaml +++ /dev/null @@ -1,761 +0,0 @@ -# Copyright 2024 New Vector Ltd -# -# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial - -# This file is generated. Do not edit directly. Edit source/values.yaml.j2 instead to make changes -## ESS specific globals, namespaced to avoid interference with other charts -ess: - ## The server name of the Matrix Stack. This gets embedded in user IDs & room IDs - ## It can not change after the initial deployment. - # serverName: ess.localhost - ## Labels to add to all manifest in this chart - labels: {} - - ## A list of Secrets in this namespace to use as pull Secrets. - ## Ignored if a given component specifies its own pull Secrets. - ## e.g. - ## imagePullSecrets: - ## - name: ess-pull-secret - imagePullSecrets: [] - - -synapse: - enabled: true - ## Details of the Postgres Database to use - postgres: - ## PostgreSQL database host - # host: - - ## PostgreSQL port - port: 5432 - - ## PostgreSQL username - # user: - - ## PostgreSQL database name - # database: - - ## TLS settins to use for the PostgreSQL connection - sslMode: prefer - - ## PostgreSQL password. - ## It can either be provided inline in the Helm chart e.g.: - ## password: - ## value: SecretValue - ## - ## Or it can be provided via an existing Secret e.g.: - ## password: - ## secret: existing-secret - ## secretKey: key-in-secret - password: {} - ## Configures the media store for Synapse - media: - ## Configures the PersistentVolumeClaim to be used for storage - storage: - ## Name of an existing PersistentVolumeClaim in this namespace that should be used - # existingClaim: - - ## The size of a PersistentVolumeClaim to be constructed - ## Ignored if existingClaim is provided - size: 10Gi - - ## The StorageClass to be used by the constructed PersistentVolumeClaim. - ## Will use the cluster default if not provided - ## Ignored if existingClaim is provided - # storageClass: - ## Key used to sign events and federation requests. - ## This needs to be the full signing key starting `ed25519 ...`. - ## It can either be provided inline in the Helm chart e.g.: - ## signingKey: - ## value: SecretValue - ## - ## Or it can be provided via an existing Secret e.g.: - ## signingKey: - ## secret: existing-secret - ## secretKey: key-in-secret - signingKey: {} - ## Shared Secret to registering users without having any users provisioned. - ## It can either be provided inline in the Helm chart e.g.: - ## registrationSharedSecret: - ## value: SecretValue - ## - ## Or it can be provided via an existing Secret e.g.: - ## registrationSharedSecret: - ## secret: existing-secret - ## secretKey: key-in-secret - registrationSharedSecret: {} - ## Secret used to sign Synapse issued tokens. - ## It can either be provided inline in the Helm chart e.g.: - ## macaroon: - ## value: SecretValue - ## - ## Or it can be provided via an existing Secret e.g.: - ## macaroon: - ## secret: existing-secret - ## secretKey: key-in-secret - macaroon: {} - - ## Additional configuration to provide to all Synapse processes. - ## This can be provided in-line in the Helm Chart and/or via an existing Secret - ## e.g. - ## additional: - ## config: | - ## allow_guest_access: true - ## - ## or - ## additional: - ## configSecret: custom-synapse-config - ## configSecretKey: shared.yaml - additional: {} - - ## Details of Application Service registration files to give to Synapse - ## e.g. - ## appservices: - ## - registrationFileConfigMap: test-appservice - appservices: [] - - ## Additional Synapse processes managed by this chart - ## e.g. - ## workers: - ## client-reader: - ## instances: 2 - ## event-creator: {} - workers: - appservice: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - background: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - client-reader: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - encryption: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - event-creator: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - event-persister: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - federation-reader: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - federation-sender: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - initial-synchrotron: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - media-repository: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - presence-writer: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - pusher: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - receipts-account: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - sliding-sync: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - sso-login: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - synchrotron: - ## Set to true to deploy instances of this worker - enabled: false - - ## The number of instances of this worker to run - instances: 1 - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - typing-persister: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - user-dir: - ## Set to true to deploy a single instance of this worker - enabled: false - - ## Resources for this worker. - ## If omitted the global Synapse resources are used - # resources: {} - - ## Synapse's logging settings - logging: - ## The maximum level of Synapse log output before any overrides - rootLevel: INFO - - ## Override the log level of specific loggers - ## e.g. - ## levelOverrides: - ## synapse.util.caches.lrucache: WARNING - levelOverrides: {} - # Details of the image to be used - image: - ## The host and (optional) port of the container image registry for this component. - ## If not specified Docker Hub is implied - registry: docker.io - - ## The path in the registry where the container image is located - repository: matrixdotorg/synapse - - ## The tag of the container image to use. - ## Defaults to the Chart's appVersion if not set - # tag: - - ## Container digest to use. Used to pull the image instead of the image tag / Chart appVersion if set - # digest: - - ## Whether the image should be pulled on container startup. Valid values are Always, IfNotPresent and Never - ## If this isn't provided it defaults to Always when using the image tag / Chart appVersion or - ## IfNotPresent if using a digest - # pullPolicy: - - ## A list of pull secrets to use for this image - ## e.g. - ## pullSecrets: - ## - name: dockerhub - pullSecrets: [] - ## How this ingress should be constructed - ingress: - ## What hostname should be used for this Ingress - # host: - - ## Annotations to be added to this Ingress - annotations: {} - - ## What Ingress Class Name should be used for this Ingress - # className: - - ## The name of the Secret containing the TLS certificate and key should be used for this Ingress - # tlsSecret: - - ## How the service behind the ingress is constructed - service: - type: ClusterIP - ## Labels to add to all manifest in this chart - labels: {} - ## Defines the annotations to add to the workload - # annotations: {} - ## A subset of SecurityContext. ContainersSecurityContext holds pod-level security attributes and common container settings - containersSecurityContext: - ## Controls whether a process can gain more privileges than its parent process. - ## This bool directly controls whether the no_new_privs flag gets set on the container process. - ## allowPrivilegeEscalation is always true when the container is run as privileged, or has CAP_SYS_ADMIN - allowPrivilegeEscalation: false - - ## Give a process some privileges, but not all the privileges of the root user. - capabilities: - ## Privileges to add. - # add: [] - ## Privileges to drop. - drop: - - ALL - - ## Mounts the container's root filesystem as read-only. - readOnlyRootFilesystem: true - - ## To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. - ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. Valid options for type include RuntimeDefault, Unconfined, and Localhost. - ## localhostProfile must only be set set if type Localhost. It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). - seccompProfile: - type: RuntimeDefault - ## Defines additional environment variables to be injected onto this workload - ## e.g. - ## extraEnv: - ## - name: FOO - ## value: "bar" - extraEnv: [] - ## The list of hosts aliases to configure on the pod spec. - ## It should be avoid as much as possible to use this feature. - ## Please prefer using an DNS entry to resolve your hostnames. - ## This can be used as a workaround when entries cannot be resolved using DNS, for example for our automated testings. - ## e.g. - ## hostAliases: - ## - ip: 192.0.2.1 # An IP resolution to add to /etc/hosts - ## # A list of hostnames to be associated with the above IP - ## hostnames: - ## - ess.localhost - ## - synapse.ess.localhost - hostAliases: [] - ## NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - # nodeSelector: {} - ## A subset of PodSecurityContext. PodSecurityContext holds pod-level security attributes and common container settings - podSecurityContext: - ## A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to - ## change the ownership of that volume to be owned by the pod: - ## - ## 1. The owning GID will be the FSGroup - ## 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)## 3. The permission bits are OR'd with rw-rw---- - ## - ## If unset, the Kubelet will not modify the ownership and permissions of any volume. - fsGroup: 10091 - - ## fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. - ## This field will only apply to volume types which support fsGroup based ownership(and permissions). - ## It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. - # fsGroupChangePolicy: - - ## The GID to run the entrypoint of the container process. Uses runtime default if unset. - runAsGroup: 10091 - - ## Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. - runAsNonRoot: true - - ## The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. - runAsUser: 10091 - - ## SELinuxOptions are the labels to be applied to all the pod containers - # seLinuxOptions: - ## Level is SELinux level label that applies to the container. - # level: - - ## Role is a SELinux role label that applies to the container. - # role: - - ## Type is a SELinux type label that applies to the container. - # type: - - ## User is a SELinux user label that applies to the container. - # user: - - ## "To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. - ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. - ## Valid options for type include RuntimeDefault, Unconfined, and Localhost. localhostProfile must only be set set if type Localhost. - ## It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). - # seccompProfile: - # localhostProfile: - # type: - - ## A list of groups applied to the first process run in each container, in addition to the container's primary GID. - ## If unspecified, no groups will be added to any container. - supplementalGroups: [] - ## Kubernetes resources to allocate to each instance. - resources: - ## Requests describes the minimum amount of compute resources required. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - requests: - memory: 100Mi - cpu: 100m - - ## Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - limits: - memory: 4Gi - ## Controls configuration of the ServiceAccount for this component - serviceAccount: - ## Whether a ServiceAccount should be created by the chart or not - create: true - - ## What name to give the ServiceAccount. If not provided the chart will provide the name automatically - name: "" - - ## Annotations to add to the service account - annotations: {} - ## Whether to deploy ServiceMonitors into the cluster for this component - ## Requires the ServiceMonitor CRDs to be in the cluster - serviceMonitors: - enabled: true - ## Workload tolerations - ## The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . - ## - ## * effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - ## * key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - ## * operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - ## * value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - ## - ## * tolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - ## e.g. - ## tolerations: - ## - effect: - ## key: - ## operator: - ## value: - - tolerations: [] - - haproxy: - replicas: 2 - # Details of the image to be used - image: - ## The host and (optional) port of the container image registry for this component. - ## If not specified Docker Hub is implied - registry: docker.io - - ## The path in the registry where the container image is located - repository: library/haproxy - - ## The tag of the container image to use. - ## Defaults to the Chart's appVersion if not set - tag: 3.0-alpine - - ## Container digest to use. Used to pull the image instead of the image tag / Chart appVersion if set - # digest: - - ## Whether the image should be pulled on container startup. Valid values are Always, IfNotPresent and Never - ## If this isn't provided it defaults to Always when using the image tag / Chart appVersion or - ## IfNotPresent if using a digest - # pullPolicy: - - ## A list of pull secrets to use for this image - ## e.g. - ## pullSecrets: - ## - name: dockerhub - pullSecrets: [] - ## Labels to add to all manifest in this chart - labels: {} - ## Defines the annotations to add to the workload - # annotations: {} - ## A subset of SecurityContext. ContainersSecurityContext holds pod-level security attributes and common container settings - containersSecurityContext: - ## Controls whether a process can gain more privileges than its parent process. - ## This bool directly controls whether the no_new_privs flag gets set on the container process. - ## allowPrivilegeEscalation is always true when the container is run as privileged, or has CAP_SYS_ADMIN - allowPrivilegeEscalation: false - - ## Give a process some privileges, but not all the privileges of the root user. - capabilities: - ## Privileges to add. - # add: [] - ## Privileges to drop. - drop: - - ALL - - ## Mounts the container's root filesystem as read-only. - readOnlyRootFilesystem: true - - ## To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. - ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. Valid options for type include RuntimeDefault, Unconfined, and Localhost. - ## localhostProfile must only be set set if type Localhost. It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). - seccompProfile: - type: RuntimeDefault - ## NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - # nodeSelector: {} - ## A subset of PodSecurityContext. PodSecurityContext holds pod-level security attributes and common container settings - podSecurityContext: - ## A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to - ## change the ownership of that volume to be owned by the pod: - ## - ## 1. The owning GID will be the FSGroup - ## 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)## 3. The permission bits are OR'd with rw-rw---- - ## - ## If unset, the Kubelet will not modify the ownership and permissions of any volume. - fsGroup: 10001 - - ## fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. - ## This field will only apply to volume types which support fsGroup based ownership(and permissions). - ## It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. - # fsGroupChangePolicy: - - ## The GID to run the entrypoint of the container process. Uses runtime default if unset. - runAsGroup: 10001 - - ## Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. - runAsNonRoot: true - - ## The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. - runAsUser: 10001 - - ## SELinuxOptions are the labels to be applied to all the pod containers - # seLinuxOptions: - ## Level is SELinux level label that applies to the container. - # level: - - ## Role is a SELinux role label that applies to the container. - # role: - - ## Type is a SELinux type label that applies to the container. - # type: - - ## User is a SELinux user label that applies to the container. - # user: - - ## "To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. - ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. - ## Valid options for type include RuntimeDefault, Unconfined, and Localhost. localhostProfile must only be set set if type Localhost. - ## It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). - # seccompProfile: - # localhostProfile: - # type: - - ## A list of groups applied to the first process run in each container, in addition to the container's primary GID. - ## If unspecified, no groups will be added to any container. - supplementalGroups: [] - ## Kubernetes resources to allocate to each instance. - resources: - ## Requests describes the minimum amount of compute resources required. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - requests: - memory: 100Mi - cpu: 100m - - ## Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - limits: - memory: 200Mi - ## Controls configuration of the ServiceAccount for this component - serviceAccount: - ## Whether a ServiceAccount should be created by the chart or not - create: true - - ## What name to give the ServiceAccount. If not provided the chart will provide the name automatically - name: "" - - ## Annotations to add to the service account - annotations: {} - ## Whether to deploy ServiceMonitors into the cluster for this component - ## Requires the ServiceMonitor CRDs to be in the cluster - serviceMonitors: - enabled: true - ## Workload tolerations - ## The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . - ## - ## * effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - ## * key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - ## * operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - ## * value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - ## - ## * tolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - ## e.g. - ## tolerations: - ## - effect: - ## key: - ## operator: - ## value: - - tolerations: [] - - redis: - # Details of the image to be used - image: - ## The host and (optional) port of the container image registry for this component. - ## If not specified Docker Hub is implied - registry: docker.io - - ## The path in the registry where the container image is located - repository: library/redis - - ## The tag of the container image to use. - ## Defaults to the Chart's appVersion if not set - tag: 7.4-alpine - - ## Container digest to use. Used to pull the image instead of the image tag / Chart appVersion if set - # digest: - - ## Whether the image should be pulled on container startup. Valid values are Always, IfNotPresent and Never - ## If this isn't provided it defaults to Always when using the image tag / Chart appVersion or - ## IfNotPresent if using a digest - # pullPolicy: - - ## A list of pull secrets to use for this image - ## e.g. - ## pullSecrets: - ## - name: dockerhub - pullSecrets: [] - ## Labels to add to all manifest in this chart - labels: {} - ## Defines the annotations to add to the workload - # annotations: {} - ## A subset of SecurityContext. ContainersSecurityContext holds pod-level security attributes and common container settings - containersSecurityContext: - ## Controls whether a process can gain more privileges than its parent process. - ## This bool directly controls whether the no_new_privs flag gets set on the container process. - ## allowPrivilegeEscalation is always true when the container is run as privileged, or has CAP_SYS_ADMIN - allowPrivilegeEscalation: false - - ## Give a process some privileges, but not all the privileges of the root user. - capabilities: - ## Privileges to add. - # add: [] - ## Privileges to drop. - drop: - - ALL - - ## Mounts the container's root filesystem as read-only. - readOnlyRootFilesystem: true - - ## To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. - ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. Valid options for type include RuntimeDefault, Unconfined, and Localhost. - ## localhostProfile must only be set set if type Localhost. It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). - seccompProfile: - type: RuntimeDefault - ## NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - # nodeSelector: {} - ## A subset of PodSecurityContext. PodSecurityContext holds pod-level security attributes and common container settings - podSecurityContext: - ## A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to - ## change the ownership of that volume to be owned by the pod: - ## - ## 1. The owning GID will be the FSGroup - ## 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)## 3. The permission bits are OR'd with rw-rw---- - ## - ## If unset, the Kubelet will not modify the ownership and permissions of any volume. - fsGroup: 10002 - - ## fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. - ## This field will only apply to volume types which support fsGroup based ownership(and permissions). - ## It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. - # fsGroupChangePolicy: - - ## The GID to run the entrypoint of the container process. Uses runtime default if unset. - runAsGroup: 10002 - - ## Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. - runAsNonRoot: true - - ## The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. - runAsUser: 10002 - - ## SELinuxOptions are the labels to be applied to all the pod containers - # seLinuxOptions: - ## Level is SELinux level label that applies to the container. - # level: - - ## Role is a SELinux role label that applies to the container. - # role: - - ## Type is a SELinux type label that applies to the container. - # type: - - ## User is a SELinux user label that applies to the container. - # user: - - ## "To set the Seccomp profile for a Container, include the seccompProfile field in the securityContext section of your Pod or Container manifest. - ## The seccompProfile field is a SeccompProfile object consisting of type and localhostProfile. - ## Valid options for type include RuntimeDefault, Unconfined, and Localhost. localhostProfile must only be set set if type Localhost. - ## It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag). - # seccompProfile: - # localhostProfile: - # type: - - ## A list of groups applied to the first process run in each container, in addition to the container's primary GID. - ## If unspecified, no groups will be added to any container. - supplementalGroups: [] - ## Kubernetes resources to allocate to each instance. - resources: - ## Requests describes the minimum amount of compute resources required. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - requests: - memory: 50Mi - cpu: 50m - - ## Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - limits: - memory: 50Mi - ## Controls configuration of the ServiceAccount for this component - serviceAccount: - ## Whether a ServiceAccount should be created by the chart or not - create: true - - ## What name to give the ServiceAccount. If not provided the chart will provide the name automatically - name: "" - - ## Annotations to add to the service account - annotations: {} - ## Workload tolerations - ## The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . - ## - ## * effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - ## * key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - ## * operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - ## * value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - ## - ## * tolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - ## e.g. - ## tolerations: - ## - effect: - ## key: - ## operator: - ## value: - - tolerations: [] From 8c14e7cc38cb2203efd5628cd622c9a336acc6bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Goinvic?= Date: Wed, 27 Nov 2024 17:37:01 +0100 Subject: [PATCH 2/2] reuse: filter all sub_schemas *.json files --- REUSE.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/REUSE.toml b/REUSE.toml index e5dead02..9ceb68d5 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -11,7 +11,7 @@ SPDX-FileCopyrightText = "Copyright 2024 New Vector Ltd" SPDX-License-Identifier = "AGPL-3.0-only OR LicenseRef-Element-Commercial" [[annotations]] -path = "charts/**/source/sub_schemas/*.json" +path = "charts/**/sub_schemas/*.json" SPDX-FileCopyrightText = "Copyright 2024 New Vector Ltd" SPDX-License-Identifier = "AGPL-3.0-only OR LicenseRef-Element-Commercial"