fix: set max length and trim last "-"
This commit is contained in:
parent
d9aac9e35f
commit
bf5d30922f
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ Allow the release namespace to be overridden for multi-namespace deployments in
|
|||
*/}}
|
||||
{{- define "ingress-nginx.namespace" -}}
|
||||
{{- if .Values.namespaceOverride -}}
|
||||
{{- .Values.namespaceOverride -}}
|
||||
{{- .Values.namespaceOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- .Release.Namespace -}}
|
||||
{{- end -}}
|
||||
|
|
Loading…
Reference in a new issue