chore: build
This commit is contained in:
@@ -5,6 +5,16 @@ app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Condition Traefik sur le nom d'hôte : l'hôte par défaut, plus les domaines
|
||||
personnalisés du client (extraHosts) — ex. Host(`a.vitrine-omnex.club`) || Host(`boutique.client.fr`).
|
||||
*/}}
|
||||
{{- define "ingressroute.hostRule" -}}
|
||||
{{- $hosts := list (printf "Host(`%s`)" .Values.host) -}}
|
||||
{{- range .Values.extraHosts }}{{ $hosts = append $hosts (printf "Host(`%s`)" .) }}{{ end -}}
|
||||
{{- join " || " $hosts -}}
|
||||
{{- end }}
|
||||
|
||||
{{- define "ingressroute.backendService" -}}
|
||||
{{- .Values.backend.serviceName | default (printf "%s-backend-vitrine-backend" .Release.Namespace) }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user