This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6c14a9
commit 5ab300c
Showing
58 changed files
with
8,487 additions
and
3,782 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ | |
|
||
|
||
# Stub file for operator-sdk create api --group matrix --version v1alpha1 --kind <Kind> to work | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ COPY --from=buildstage /app/conversion-webhook / | |
|
||
EXPOSE 8443 | ||
ENTRYPOINT ["/conversion-webhook"] | ||
|
||
USER 30001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
Oops, something went wrong.