From c7e217208c4cb812cc23f9aa5ea42fcb77ea7c3a Mon Sep 17 00:00:00 2001 From: Dominik Kaminski Date: Tue, 16 Apr 2024 07:59:23 +0200 Subject: [PATCH] feat(services): Add opendesk-home service, which redirects on domain to portal --- helmfile/apps/services/helmfile.yaml | 19 +++++++++++++++++++ .../apps/services/values-home.yaml.gotmpl | 16 ++++++++++++++++ helmfile/environments/default/charts.yaml | 12 +++++++++++- helmfile/environments/default/workplace.yaml | 3 +++ 4 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 helmfile/apps/services/values-home.yaml.gotmpl diff --git a/helmfile/apps/services/helmfile.yaml b/helmfile/apps/services/helmfile.yaml index ad366e98..10d68e4b 100644 --- a/helmfile/apps/services/helmfile.yaml +++ b/helmfile/apps/services/helmfile.yaml @@ -1,3 +1,4 @@ +# SPDX-FileCopyrightText: 2024 Zentrum für Digitale Souveränität der Öffentlichen Verwaltung (ZenDiS) GmbH # SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS" # SPDX-License-Identifier: Apache-2.0 --- @@ -16,6 +17,17 @@ repositories: url: "{{ .Values.global.helmRegistry | default .Values.charts.otterize.registry }}/\ {{ .Values.charts.otterize.repository }}" + # openDesk Home + # Source: https://gitlab.opencode.de/bmi/opendesk/components/platform-development/charts/opendesk-home + - name: "home-repo" + keyring: "../../files/gpg-pubkeys/opencode.gpg" + verify: {{ .Values.charts.home.verify }} + username: {{ env "OD_PRIVATE_REGISTRY_USERNAME" | quote }} + password: {{ env "OD_PRIVATE_REGISTRY_PASSWORD" | quote }} + oci: true + url: "{{ .Values.global.helmRegistry | default .Values.charts.home.registry }}/\ + {{ .Values.charts.home.repository }}" + # openDesk Certificates # Source: https://gitlab.opencode.de/bmi/opendesk/components/platform-development/charts/opendesk-certificates - name: "certificates-repo" @@ -115,6 +127,13 @@ releases: installed: {{ .Values.security.otterizeIntents.enabled }} timeout: 900 + - name: "opendesk-home" + chart: "home-repo/{{ .Values.charts.home.name }}" + version: "{{ .Values.charts.home.version }}" + values: + - "values-home.yaml.gotmpl" + installed: {{ .Values.home.enabled }} + - name: "opendesk-certificates" chart: "certificates-repo/{{ .Values.charts.certificates.name }}" version: "{{ .Values.charts.certificates.version }}" diff --git a/helmfile/apps/services/values-home.yaml.gotmpl b/helmfile/apps/services/values-home.yaml.gotmpl new file mode 100644 index 00000000..02c93683 --- /dev/null +++ b/helmfile/apps/services/values-home.yaml.gotmpl @@ -0,0 +1,16 @@ +{{/* +SPDX-FileCopyrightText: 2024 Zentrum für Digitale Souveränität der Öffentlichen Verwaltung (ZenDiS) GmbH +SPDX-License-Identifier: Apache-2.0 +*/}} +--- +global: + domain: {{ .Values.global.domain | quote }} + hosts: + {{ .Values.global.hosts | toYaml | nindent 4 }} + +ingress: + ingressClassName: {{ .Values.ingress.ingressClassName | quote }} + host: "{{ .Values.global.hosts.nextcloud }}.{{ .Values.global.domain }}" + tls: + secretName: {{ .Values.ingress.tls.secretName | quote }} +... diff --git a/helmfile/environments/default/charts.yaml b/helmfile/environments/default/charts.yaml index 6cb06209..165efa92 100644 --- a/helmfile/environments/default/charts.yaml +++ b/helmfile/environments/default/charts.yaml @@ -1,5 +1,5 @@ -# SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS" # SPDX-FileCopyrightText: 2024 Zentrum für Digitale Souveränität der Öffentlichen Verwaltung (ZenDiS) GmbH +# SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS" # SPDX-License-Identifier: Apache-2.0 # # Please read the /docs/development.md for information about structure and annotations used in this file. @@ -90,6 +90,16 @@ charts: name: "opendesk-well-known" version: "2.6.7" verify: true + home: + # providerCategory: 'Platform' + # providerResponsible: 'openDesk' + # upstreamRegistry: 'registry.opencode.de' + # upstreamRepository: 'bmi/opendesk/components/platform-development/charts/opendesk-home' + registry: "registry.opencode.de" + repository: "bmi/opendesk/components/platform-development/charts/opendesk-home" + name: "opendesk-home" + version: "1.0.1" + verify: true intercomService: # providerCategory: 'Supplier' # providerResponsible: 'Univention' diff --git a/helmfile/environments/default/workplace.yaml b/helmfile/environments/default/workplace.yaml index a87c4924..10651f87 100644 --- a/helmfile/environments/default/workplace.yaml +++ b/helmfile/environments/default/workplace.yaml @@ -1,3 +1,4 @@ +# SPDX-FileCopyrightText: 2024 Zentrum für Digitale Souveränität der Öffentlichen Verwaltung (ZenDiS) GmbH # SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS" # SPDX-License-Identifier: Apache-2.0 --- @@ -15,6 +16,8 @@ dovecot: enabled: true element: enabled: true +home: + enabled: true intercom: enabled: true jitsi: