Skip to content
Snippets Groups Projects
Commit 6c9add54 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2492: Bezeichner auf max. 27 zeichen angepasst

parent b52e3475
Branches
Tags
No related merge requests found
......@@ -64,7 +64,12 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- define "app.kopBezeichner" -}}
{{- required "Bezeichner muss angegeben sein" (.Values.kop).bezeichner -}}
{{ $length := len (.Values.kop).bezeichner }}
{{- if ge 27 $length -}}
{{ (.Values.kop).bezeichner }}
{{- else -}}
{{ required (printf "Bezichner %s ist zu lang (max. 27 Zeichen)" (.Values.kop).bezeichner) nil }}
{{- end -}}
{{- end -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment