Skip to content

Commit

Permalink
Merge pull request #45 from Marvin-Highcreek/main
Browse files Browse the repository at this point in the history
enables dynamic hostnames
  • Loading branch information
jouve authored Apr 10, 2024
2 parents 3e6c2c6 + 1e07299 commit 0ba2109
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/mailpit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: mailpit
description: An email and SMTP testing tool with API for developers
icon: https://raw.githubusercontent.com/axllent/mailpit/develop/server/ui/mailpit.svg
type: application
version: 0.15.2
version: 0.15.3
appVersion: 1.15.1
dependencies:
- name: common
Expand Down
4 changes: 4 additions & 0 deletions charts/mailpit/ci/ingress-values.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
ingress:
enabled: true
hostname: '{{ .Release.Name }}.example.com'
annotations:
cert-manager.io/issuer: mailpit-issuer
tls: true
4 changes: 2 additions & 2 deletions charts/mailpit/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
{{- end }}
rules:
{{- if .Values.ingress.hostname }}
- host: {{ .Values.ingress.hostname | quote }}
- host: {{ tpl .Values.ingress.hostname . | quote }}
http:
paths:
- path: {{ .Values.ingress.path }}
Expand All @@ -37,7 +37,7 @@ spec:
tls:
{{- if and .Values.ingress.tls (include "common.ingress.certManagerRequest" ( dict "annotations" .Values.ingress.annotations )) }}
- hosts:
- {{ .Values.ingress.hostname | quote }}
- {{ tpl .Values.ingress.hostname . | quote }}
secretName: {{ template "common.names.fullname" . }}-tls
{{- end }}
{{- with .Values.ingress.extraTls }}
Expand Down

0 comments on commit 0ba2109

Please sign in to comment.