fix(stalwart-mail): validate traefik port
This commit is contained in:
parent
451d130f6b
commit
7e3786c91b
3 changed files with 6 additions and 4 deletions
|
@ -3,7 +3,7 @@ name: stalwart-mail
|
||||||
description: Helm Chart for Stalwart Mail Server - Secure & Modern All-in-One Mail Server (IMAP, JMAP, SMTP)
|
description: Helm Chart for Stalwart Mail Server - Secure & Modern All-in-One Mail Server (IMAP, JMAP, SMTP)
|
||||||
icon: https://stalw.art/home/apple-touch-icon.png
|
icon: https://stalw.art/home/apple-touch-icon.png
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.8
|
version: 0.0.9
|
||||||
# renovate: image=docker.io/stalwartlabs/mail-server
|
# renovate: image=docker.io/stalwartlabs/mail-server
|
||||||
appVersion: "0.8.1"
|
appVersion: "0.8.1"
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
= stalwart-mail
|
= stalwart-mail
|
||||||
|
|
||||||
image::https://img.shields.io/badge/Version-0.0.8-informational?style=flat-square[Version: 0.0.8]
|
image::https://img.shields.io/badge/Version-0.0.9-informational?style=flat-square[Version: 0.0.9]
|
||||||
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
|
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
|
||||||
image::https://img.shields.io/badge/AppVersion-0.8.1-informational?style=flat-square[AppVersion: 0.8.1]
|
image::https://img.shields.io/badge/AppVersion-0.8.1-informational?style=flat-square[AppVersion: 0.8.1]
|
||||||
== Maintainers
|
== Maintainers
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{{- if .Values.traefik.enabled }}
|
{{- if .Values.traefik.enabled }}
|
||||||
{{- range $port,$config := .Values.traefik.ports }}
|
{{- range $port,$config := .Values.traefik.ports }}
|
||||||
|
{{- if $config }}
|
||||||
---
|
---
|
||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRouteTCP
|
kind: IngressRouteTCP
|
||||||
|
@ -7,7 +8,7 @@ metadata:
|
||||||
name: {{ include "stalwart-mail.fullname" $ }}-{{ $port }}
|
name: {{ include "stalwart-mail.fullname" $ }}-{{ $port }}
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- {{ $config.entrypoint }}
|
- {{ required (printf "traefik.ports.%s.entrypoint is required" $port) $config.entrypoint }}
|
||||||
routes:
|
routes:
|
||||||
- match: {{ $config.match | default (printf "HostSNI(`%s`)" $.Values.traefik.host) | quote }}
|
- match: {{ $config.match | default (printf "HostSNI(`%s`)" $.Values.traefik.host) | quote }}
|
||||||
services:
|
services:
|
||||||
|
@ -21,5 +22,6 @@ spec:
|
||||||
tls:
|
tls:
|
||||||
passthrough: true
|
passthrough: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}{{/* if config exists*/}}
|
||||||
|
{{- end }}{{/* end-range */}}
|
||||||
{{- end }}{{/* end-if .enabled */}}
|
{{- end }}{{/* end-if .enabled */}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue