mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-11-28 04:46:50 -08:00
Merge branch 'maintenance/25.12' into bbz/merge-maintenance-25.12-to-main
This commit is contained in:
commit
2fcfbe0975
16 files changed
+40
-10
No files matched your search
@@ -10,6 +10,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'maintenance/*'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -9,6 +9,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'maintenance/*'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -9,6 +9,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'maintenance/*'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -10,6 +10,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'maintenance/*'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -10,6 +10,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'maintenance/*'
|
||||
tags:
|
||||
- 'matrix-tools-*'
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -10,6 +10,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'maintenance/*'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -9,6 +9,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'maintenance/*'
|
||||
tags:
|
||||
- '[0-9]+.[0-9]+.[0-9]+'
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -10,6 +10,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'maintenance/*'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
## The matrix-tools image, used in multiple components
|
||||
matrixTools:
|
||||
{{ image(registry="ghcr.io", repository="element-hq/ess-helm/matrix-tools", tag="0.5.7") | indent(2) }}
|
||||
{{ image(registry="ghcr.io", repository="element-hq/ess-helm/matrix-tools", tag="0.5.8") | indent(2) }}
|
||||
|
||||
## CertManager Issuer to configure by default automatically on all ingresses
|
||||
## If configured, the chart will automatically generate the tlsSecret name for all ingresses
|
||||
|
||||
@@ -85,7 +85,7 @@ logging:
|
||||
## levelOverrides:
|
||||
## synapse.util.caches.lrucache: WARNING
|
||||
levelOverrides: {}
|
||||
{{- sub_schema_values.image(registry='ghcr.io', repository='element-hq/synapse', tag='v1.144.0') }}
|
||||
{{- sub_schema_values.image(registry='oci.element.io', repository='synapse', tag='v1.144.0-ess.2') }}
|
||||
{{- sub_schema_values.ingress() }}
|
||||
{{- sub_schema_values.labels() }}
|
||||
{{- sub_schema_values.workloadAnnotations() }}
|
||||
|
||||
@@ -19,6 +19,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
{{- end -}}
|
||||
{{- $outputFile := required "element-io.ess-library.render-config-container missing context.outputFile" .outputFile -}}
|
||||
{{- $underrides := .underrides | default list -}}
|
||||
{{- $underridesSecrets := .underridesSecrets | default list -}}
|
||||
{{- $overrides := required "element-io.ess-library.render-config-container missing context.overrides" .overrides -}}
|
||||
- name: {{ $containerName }}
|
||||
{{- include "element-io.ess-library.pods.image" (dict "root" $root "context" $root.Values.matrixTools.image) | nindent 2 }}
|
||||
@@ -32,6 +33,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
- /conf/{{ $outputFile }}
|
||||
{{- range $underrides }}
|
||||
- /config-templates/{{ . }}
|
||||
{{- end }}
|
||||
{{- range $underridesSecrets }}
|
||||
- /secrets/{{ tpl .configSecret $root }}/{{ .configSecretKey }}
|
||||
{{- end }}
|
||||
{{- range $key := ($additionalProperty | keys | uniq | sortAlpha) -}}
|
||||
{{- $prop := index $additionalProperty $key }}
|
||||
|
||||
@@ -49,7 +49,8 @@ app.kubernetes.io/version: {{ include "element-io.ess-library.labels.makeSafe" $
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with $root.Values.synapse }}
|
||||
{{- if .enabled -}}
|
||||
{{- if .enabled }}
|
||||
- {{ (printf "%s-generated" $root.Release.Name) }}:SYNAPSE_EXTRA:extra
|
||||
{{- if not .macaroon }}
|
||||
- {{ (printf "%s-generated" $root.Release.Name) }}:SYNAPSE_MACAROON:rand32
|
||||
{{- end }}
|
||||
|
||||
@@ -241,12 +241,17 @@ ess-version.json: |
|
||||
{{- with required "element-io.synapse.render-config-container missing context" .context }}
|
||||
{{- $processType := required "element-io.synapse.render-config-container context required processType" .processType -}}
|
||||
{{- $isHook := required "element-io.synapse.render-config-container context required isHook" .isHook -}}
|
||||
{{- $underridesSecrets := list }}
|
||||
{{- if $root.Values.initSecrets.enabled }}
|
||||
{{- $underridesSecrets = append $underridesSecrets (dict "configSecret" (printf "%s-generated" $root.Release.Name) "configSecretKey" "SYNAPSE_EXTRA") }}
|
||||
{{- end}}
|
||||
{{- include "element-io.ess-library.render-config-container" (dict "root" $root "context"
|
||||
(dict "additionalPath" "synapse.additional"
|
||||
"nameSuffix" "synapse"
|
||||
"containerName" (.containerName | default "render-config")
|
||||
"templatesVolume" (.templatesVolume | default "plain-config")
|
||||
"underrides" (list "01-homeserver-underrides.yaml")
|
||||
"underridesSecrets" $underridesSecrets
|
||||
"overrides" (list "04-homeserver-overrides.yaml"
|
||||
(eq $processType "check-config" | ternary "05-main.yaml" (printf "05-%s.yaml" $processType)))
|
||||
"outputFile" "homeserver.yaml"
|
||||
|
||||
@@ -21,7 +21,7 @@ matrixTools:
|
||||
|
||||
## The tag of the container image to use.
|
||||
## One of tag or digest must be provided.
|
||||
tag: "0.5.7"
|
||||
tag: "0.5.8"
|
||||
|
||||
## Container digest to use. Used to pull the image instead of the image tag if set
|
||||
## The tag will still be set as the app.kubernetes.io/version label
|
||||
@@ -4029,14 +4029,14 @@ synapse:
|
||||
image:
|
||||
## The host and (optional) port of the container image registry for this component.
|
||||
## If not specified Docker Hub is implied
|
||||
registry: ghcr.io
|
||||
registry: oci.element.io
|
||||
|
||||
## The path in the registry where the container image is located
|
||||
repository: element-hq/synapse
|
||||
repository: synapse
|
||||
|
||||
## The tag of the container image to use.
|
||||
## One of tag or digest must be provided.
|
||||
tag: "v1.144.0"
|
||||
tag: "v1.144.0-ess.2"
|
||||
|
||||
## Container digest to use. Used to pull the image instead of the image tag if set
|
||||
## The tag will still be set as the app.kubernetes.io/version label
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
CI: run most jobs on maintenance branches too.
|
||||
@@ -24,6 +24,17 @@ async def test_all_secrets_have_type(templates):
|
||||
@pytest.mark.asyncio_cooperative
|
||||
async def test_no_secret_generated_when_unneeded(release_name, values, make_templates):
|
||||
values["initSecrets"] = {"enabled": True}
|
||||
for template in await make_templates(values):
|
||||
if template["kind"] == "Job":
|
||||
assert template["metadata"]["name"] != f"{release_name}-init-secrets"
|
||||
|
||||
async def _find_init_secrets():
|
||||
for template in await make_templates(values):
|
||||
if template["kind"] == "Job" and template["metadata"]["name"] == f"{release_name}-init-secrets":
|
||||
return True
|
||||
return False
|
||||
|
||||
# init-secret is always present when synapse.enabled=true
|
||||
if values["synapse"]["enabled"]:
|
||||
assert await _find_init_secrets()
|
||||
else:
|
||||
# if snyapse.enabled=false, we should not have init-secrets when all
|
||||
# secrets are specified
|
||||
assert not await _find_init_secrets()
|
||||
Reference in new issue
Block a user