mirror of
https://gitlab.opencode.de/bmi/opendesk/deployment/opendesk.git
synced 2025-12-06 15:31:38 +01:00
86 lines
2.9 KiB
Go Template
86 lines
2.9 KiB
Go Template
{{/*
|
|
SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS"
|
|
SPDX-License-Identifier: Apache-2.0
|
|
*/}}
|
|
---
|
|
image:
|
|
registry: {{ .Values.global.imageRegistry | quote }}
|
|
repository: {{ .Values.images.umsPortalFrontend.repository | quote }}
|
|
pullPolicy: {{ .Values.global.imagePullPolicy | quote }}
|
|
tag: {{ .Values.images.umsPortalFrontend.tag | quote }}
|
|
pullSecrets:
|
|
{{- range .Values.global.imagePullSecrets }}
|
|
- name: {{ . | quote }}
|
|
{{- end }}
|
|
|
|
extraIngresses:
|
|
redirects:
|
|
enabled: {{ if eq .Values.ingress.ingressClassName "dedicated-haproxy-external" }}false{{ else }}{{ .Values.ingress.enabled }}{{ end }}
|
|
# The TLS configuration is on the "master" Ingress, see below.
|
|
tls:
|
|
enabled: false
|
|
master:
|
|
enabled: {{ if eq .Values.ingress.ingressClassName "dedicated-haproxy-external" }}false{{ else }}{{ .Values.ingress.enabled }}{{ end }}
|
|
tls:
|
|
enabled: {{ .Values.ingress.tls.enabled }}
|
|
secretName: {{ .Values.ingress.tls.secretName | quote }}
|
|
|
|
# See "extraVolumeMounts" below
|
|
custom-favicon:
|
|
enabled: true
|
|
annotations:
|
|
nginx.org/mergeable-ingress-type: "minion"
|
|
paths:
|
|
- pathType: Exact
|
|
path: /favicon.ico
|
|
tls: {}
|
|
|
|
# See "extraVolumeMounts" below
|
|
custom-branding:
|
|
enabled: true
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/configuration-snippet: |
|
|
rewrite ^/univention/portal(/.*)$ $1 break;
|
|
nginx.org/location-snippets: |
|
|
rewrite ^/univention/portal(/.*)$ $1 break;
|
|
nginx.org/mergeable-ingress-type: "minion"
|
|
paths:
|
|
# This relies on the correct implementation of the matching for paths of
|
|
# type "Prefix" since "/univention/portal/icons/entries/" is owned by
|
|
# store-dav.
|
|
# See: https://kubernetes.io/docs/concepts/services-networking/ingress/#multiple-matches
|
|
- pathType: Prefix
|
|
path: /univention/portal/icons/
|
|
- pathType: Prefix
|
|
path: /univention/portal/custom/
|
|
tls: {}
|
|
|
|
extraVolumes:
|
|
- name: "opendesk-branding"
|
|
configMap:
|
|
name: "ums-stack-data-swp-branding"
|
|
|
|
extraVolumeMounts:
|
|
- name: "opendesk-branding"
|
|
mountPath: "/var/www/html/favicon.ico"
|
|
subPath: "favicon.ico"
|
|
- name: "opendesk-branding"
|
|
mountPath: "/var/www/html/css/custom.css"
|
|
subPath: "custom.css"
|
|
- name: "opendesk-branding"
|
|
mountPath: "/var/www/html/icons/logo.svg"
|
|
subPath: "logo.svg"
|
|
- name: "opendesk-branding"
|
|
mountPath: "/var/www/html/icons/logo_small_border.svg"
|
|
subPath: "logo_small_border.svg"
|
|
- name: "opendesk-branding"
|
|
mountPath: "/var/www/html/custom/portal_background_image.png"
|
|
subPath: "portal_background_image.png"
|
|
- name: "opendesk-branding"
|
|
mountPath: "/var/www/html/custom/portal_background_image.svg"
|
|
subPath: "portal_background_image.svg"
|
|
|
|
resources:
|
|
{{ .Values.resources.umsPortalFrontend | toYaml | nindent 2 }}
|
|
...
|