scale-catalog/premium/traefik/27.0.14/templates/_portalhook.tpl
Julian Haseleu 5d1ab94342 cleanup
2024-07-14 21:54:53 +00:00

25 lines
598 B
Smarty

{{/* Define the portalHook */}}
{{- define "traefik.portalhook" -}}
{{- if .Values.portalhook.enabled -}}
{{- $name := "portalhook" -}}
{{- if $.Values.ingressClass.enabled -}}
{{- $name = printf "portalhook-%v" .Release.Name -}}
{{- end }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ $name }}
data:
{{- $ports := dict }}
{{- range $.Values.service }}
{{- range $name, $value := .ports }}
{{- $_ := set $ports $name $value }}
{{- end }}
{{- end }}
{{- range $name, $value := $ports }}
{{ $name }}: {{ $value.port | quote }}
{{- end }}
{{- end }}
{{- end -}}