Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
2.19.7
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelgatelement committed Jul 31, 2024
1 parent a6c14a9 commit 5ab300c
Show file tree
Hide file tree
Showing 58 changed files with 8,487 additions and 3,782 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.operator
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ LABEL git_commit=$GIT_COMMIT

COPY --from=build-tmp /element.io /element.io
RUN chmod -R 0755 /element.io

USER 32000
2 changes: 2 additions & 0 deletions Dockerfile.updater
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ COPY roles/generic_apply /element.io/roles/generic_apply/
COPY playbooks/elementdeployment.yml playbooks/any.yml /element.io/playbooks/

RUN chmod -R 0755 /element.io

USER 32001
1 change: 0 additions & 1 deletion config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@


# Stub file for operator-sdk create api --group matrix --version v1alpha1 --kind <Kind> to work

2 changes: 2 additions & 0 deletions conversion/Dockerfile.operator
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ WORKDIR /
COPY --from=buildstage /app/conversion-webhook /
EXPOSE 8443
ENTRYPOINT ["/conversion-webhook"]

USER 30000
2 changes: 2 additions & 0 deletions conversion/Dockerfile.updater
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ COPY --from=buildstage /app/conversion-webhook /

EXPOSE 8443
ENTRYPOINT ["/conversion-webhook"]

USER 30001
11 changes: 11 additions & 0 deletions helm/ess-stack/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright 2024 New Vector Ltd
#
# SPDX-License-Identifier: AGPL-3.0-or-later


apiVersion: v2
name: ess-stack
description: A Helm chart to deploy ESS stack
type: application
version: 2.19.7
appVersion: 2.19.7
14 changes: 14 additions & 0 deletions helm/ess-stack/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2024 New Vector Ltd
#
# SPDX-License-Identifier: AGPL-3.0-or-later


{{/*
Template the configuration of an ems image store from Helm values/secrets
*/}}
{{- define "ess.secrets.credentials.ems-image-store" }}
{{- with .Values.emsImageStore }}
{{- printf "{\"auths\":{\"registry.element.io\":{\"auth\":\"%s\"}, \"gitlab-registry.matrix.org/ems-image-store\":{\"auth\":\"%s\"}}}" (printf "%s:%s" .username .password | b64enc) (printf "%s:%s" .username .password | b64enc) | b64enc }}
{{- end }}
{{- end }}

21 changes: 21 additions & 0 deletions helm/ess-stack/templates/elementdeployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2024 New Vector Ltd
#
# SPDX-License-Identifier: AGPL-3.0-or-later


apiVersion: matrix.element.io/v1alpha2
kind: ElementDeployment
metadata:
name: {{ .Release.Name }}
annotations:
k8s.element.io/secretshash: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
spec:
components:
{{ range $component, $properties := $.Values.components }}
{{ $component }}:
secretName: {{ (index $.Values.secrets $component).existingSecret | default (printf "%s-secret" ($component | lower) ) }}
{{ tpl (toYaml $properties) $ | nindent 6 }}
{{ end }}
global:
secretName: {{ $.Values.secrets.global.existingSecret | default ("global-secret") }}
{{ tpl (toYaml $.Values.global) . | nindent 4 }}
17 changes: 17 additions & 0 deletions helm/ess-stack/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2024 New Vector Ltd
#
# SPDX-License-Identifier: AGPL-3.0-or-later


{{ range $component, $secret := $.Values.secrets }}
apiVersion: v1
kind: Secret
metadata:
name: {{ $component | lower }}-secret
type: Opaque
data:
{{ range $key, $value := $secret.content }}
{{ $key }}: {{ $value | b64enc }}
{{ end }}
---
{{ end }}
Loading

0 comments on commit 5ab300c

Please sign in to comment.