Files
Xor290 4bb8c143e2
ci-api / test (push) Successful in 23m50s
ci-web / test (push) Successful in 13m43s
chore: build
2026-10-04 12:52:16 +02:00

25 lines
991 B
Smarty

{{- define "ingressroute.labels" -}}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
app.kubernetes.io/name: {{ .Chart.Name }}
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 }}
{{- define "ingressroute.frontendService" -}}
{{- .Values.frontend.serviceName | default (printf "%s-frontend-vitrine-frontend" .Release.Namespace) }}
{{- end }}