diff --git a/library/common/Chart.yaml b/library/common/Chart.yaml index 3f7f5cff..f71caa93 100644 --- a/library/common/Chart.yaml +++ b/library/common/Chart.yaml @@ -15,4 +15,4 @@ maintainers: name: common sources: null type: library -version: 12.2.26 +version: 12.2.27 diff --git a/library/common/templates/lib/chart/_names.tpl b/library/common/templates/lib/chart/_names.tpl index 842ee5cc..fcba93bd 100644 --- a/library/common/templates/lib/chart/_names.tpl +++ b/library/common/templates/lib/chart/_names.tpl @@ -34,7 +34,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 -}}