Add robustness in ingress domain

This commit is contained in:
Laszlo Fogas
2021-02-10 15:22:17 +01:00
parent 5cf73c3595
commit 6a21d06820
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ spec:
secretName: {{ printf "tls-%s" $.Release.Name }}
{{- end }}
rules:
- host: {{ .host | quote }}
- host: {{ .host | trunc 63 | trimSuffix "-" | replace "/" "-" | replace "_" "-" | quote }}
http:
paths:
- backend:
@@ -17,6 +17,7 @@ tests:
- it: Should set Ingress annotation
set:
ingress:
host: chart-example.local
annotations:
kubernetes.io/ingress.class: nginx
asserts: