Skip to content
Snippets Groups Projects
Commit 118bc3ad authored by Andri Joos's avatar Andri Joos :blush:
Browse files

make traefik ingressroutetcp routes a dict

parent d693c45d
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,10 @@ Secret data
{{- toYaml $data -}}
{{- end }}
{{/*
ConfigMap
*/}}
{{/*
ConfigMap data
*/}}
......@@ -70,3 +74,19 @@ ConfigMap data
{{- end }}
{{- toYaml $data -}}
{{- end }}
{{/*
Traefik
*/}}
{{/*
IngressRouteTCP
*/}}
{{- define "common.traefik.variables.ingressroutetcp.routes" -}}
{{- $routes := list -}}
{{- range $name, $route := .Values.routes -}}
{{- $routes = append $routes $route -}}
{{- end }}
{{- toYaml $routes -}}
{{- end }}
......@@ -14,10 +14,8 @@ spec:
entryPoints:
{{- toYaml . | nindent 4}}
{{- end }}
{{- with .Values.routes }}
routes:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- (include "common.traefik.variables.ingressroutetcp.routes" .) | nindent 4 }}
{{- with .Values.tls }}
tls:
{{ toYaml . | nindent 4 }}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment