This repository has been archived on 2025-05-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
truecharts-catalog/premium/nextcloud/30.0.7/templates/_ingressInjector.tpl
TrueCharts-Bot 851ebdbcf1 Commit new Chart releases for TrueCharts
Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
2024-05-01 22:02:05 +00:00

24 lines
755 B
Smarty

{{- define "nextcloud.ingressInjector" -}}
{{- if .Values.ingress.main.enabled -}}
{{- $injectPaths := list -}}
{{- if .Values.nextcloud.collabora.enabled -}}
{{- $injectPaths = mustAppend $injectPaths (include "nextcloud.collabora.ingress" $ | fromYaml) -}}
{{- end -}}
{{/* Append more paths here if needed */}}
{{- range $host := .Values.ingress.main.hosts -}}
{{- $paths := $host.paths -}}
{{- $paths = concat $paths $injectPaths -}}
{{- $_ := set $host "paths" $paths -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- define "nextcloud.collabora.ingress" -}}
path: /collabora/
pathType: Prefix
overrideService:
name: collabora
port: {{ .Values.service.collabora.ports.collabora.port }}
{{- end -}}