Add robustness in ingress domain
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user