Fixing #28: ingress host names and resource names have different sanitization needs

This commit is contained in:
Laszlo Fogas
2021-08-27 09:03:45 +02:00
parent 269ab7e376
commit e85c443284
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -6,5 +6,5 @@ Create robustName that can be used as Kubernetes resource name, and as subdomain
\W all but \w .
*/}}
{{- define "common.robustName" -}}
{{ regexReplaceAll "[^0-9A-Za-z_\\.]+" . "-" | replace "_" "-" | lower | trunc 63 | trimSuffix "-" | trimPrefix "-" }}
{{ regexReplaceAll "\\W+" . "-" | replace "_" "-" | lower | trunc 63 | trimSuffix "-" }}
{{- end }}