Skip to content

Commit

Permalink
do not allow -- in names
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Mar 16, 2023
1 parent 9653015 commit 42145c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/common/templates/lib/chart/_names.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

{{- $name := .name -}}

{{- if not (mustRegexMatch "^[a-z0-9]([a-z0-9-]){0,61}[a-z0-9]$" $name) -}}
{{- if not (mustRegexMatch "^[a-z0-9]([a-z0-9]-?|-?[a-z0-9]){0,61}[a-z0-9]$" $name) -}}
{{- fail (printf "Name [%s] is not valid. Must start and end with an alphanumeric lowercase character. It can contain '-'. And must be at most 63 characters." $name) -}}
{{- end -}}

Expand Down

0 comments on commit 42145c0

Please sign in to comment.