diff --git a/helm-chart/templates/ingress.yaml b/helm-chart/templates/ingress.yaml index d7e012e..647aa67 100644 --- a/helm-chart/templates/ingress.yaml +++ b/helm-chart/templates/ingress.yaml @@ -8,7 +8,13 @@ metadata: spec: rules: {{- range .Values.sites }} + {{- if .apex }} + - host: {{ .host }} + {{- else if .subdomain }} + - host: {{ .subdomain }}.{{ .host }} + {{- else }} - host: {{ .name }}.{{ .host }} + {{ end }} http: paths: - path: /