2024-02-12 18:42:55 +00:00
|
|
|
{{/* Make sure all variables are set properly */}}
|
|
|
|
{{- include "tc.v1.common.loader.init" . }}
|
|
|
|
|
2024-02-27 23:24:49 +00:00
|
|
|
{{- $overrideService := dict "name" "tckubeapps" "port" 8080 -}}
|
2024-02-27 23:20:48 +00:00
|
|
|
{{- $hosts := list -}}
|
|
|
|
{{- range $.Values.ingress.main.hosts -}}
|
|
|
|
{{- $paths := list -}}
|
|
|
|
{{- range .paths -}}
|
|
|
|
{{- $path := dict "path" .path "pathType" .pathType "overrideService" $overrideService -}}
|
|
|
|
{{- $paths = append $paths $path -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- $host := dict "host" .host "paths" $paths -}}
|
|
|
|
{{- $hosts = append $hosts $host -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- $_ := set $.Values.ingress.main "hosts" $hosts -}}
|
|
|
|
|
2024-02-12 18:42:55 +00:00
|
|
|
{{/* Render the templates */}}
|
|
|
|
{{ include "tc.v1.common.loader.apply" . }}
|