Skip to content

Commit

Permalink
Support templates in ingress host
Browse files Browse the repository at this point in the history
  • Loading branch information
yahel2410 committed May 27, 2024
1 parent 6904194 commit a3b457c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions charts/localstack/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ spec:
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- $base := . }}
{{- range .hosts }}
- {{ . | quote }}
- {{ tpl . $base | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- $base := . }}
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
- host: {{ tpl .host $base | quote }}
http:
paths:
{{- range .paths }}
Expand Down
6 changes: 6 additions & 0 deletions charts/localstack/test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ mountDind:
forceTLS: true


ingressHost: chart-example.local
ingress:
enabled: true
hosts:
- host: {{ .Values.ingressHost }}

# enable localstack pro (don't forget to set your API key)
# image:
# repository: localstack/localstack-pro
Expand Down

0 comments on commit a3b457c

Please sign in to comment.