mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
Co-authored-by: lab-assistant[bot] <180935599+lab-assistant[bot]@users.noreply.github.com>
19 lines
944 B
Smarty
19 lines
944 B
Smarty
{{/*
|
|
Renders the Ingress objects required by the chart.
|
|
*/}}
|
|
{{- define "bjw-s.common.render.ingresses" -}}
|
|
{{- $rootContext := $ -}}
|
|
|
|
{{- /* Generate Ingresses as required */ -}}
|
|
{{- $enabledIngresses := (include "bjw-s.common.lib.ingress.enabledIngresses" (dict "rootContext" $rootContext) | fromYaml ) -}}
|
|
{{- range $identifier := keys $enabledIngresses -}}
|
|
{{- /* Generate object from the raw persistence values */ -}}
|
|
{{- $ingressObject := (include "bjw-s.common.lib.ingress.getByIdentifier" (dict "rootContext" $rootContext "id" $identifier) | fromYaml) -}}
|
|
|
|
{{- /* Perform validations on the Ingress before rendering */ -}}
|
|
{{- include "bjw-s.common.lib.ingress.validate" (dict "rootContext" $rootContext "object" $ingressObject) -}}
|
|
|
|
{{- /* Include the ingress class */ -}}
|
|
{{- include "bjw-s.common.class.ingress" (dict "rootContext" $ "object" $ingressObject) | nindent 0 -}}
|
|
{{- end -}}
|
|
{{- end -}}
|