2023-06-18 15:15:53 +00:00
|
|
|
{{- define "nextcloud.ingressInjector" -}}
|
|
|
|
{{- if .Values.ingress.main.enabled -}}
|
|
|
|
{{- $injectPaths := list -}}
|
|
|
|
{{- if .Values.nextcloud.collabora.enabled -}}
|
2023-06-21 20:01:21 +00:00
|
|
|
{{- $injectPaths = mustAppend $injectPaths (include "nextcloud.collabora.ingress" $ | fromYaml) -}}
|
2023-06-18 15:15:53 +00:00
|
|
|
{{- 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" -}}
|
|
|
|
{{- $fullname := include "tc.v1.common.lib.chart.names.fullname" . }}
|
2023-06-21 08:00:28 +00:00
|
|
|
path: /collabora/
|
2023-06-18 15:15:53 +00:00
|
|
|
pathType: Prefix
|
|
|
|
service:
|
|
|
|
name: {{ printf "%v-collabora" $fullname }}
|
|
|
|
port: {{ .Values.service.collabora.ports.collabora.port }}
|
|
|
|
{{- end -}}
|