From aefa34d6d2e0e3cf7acc7cae9afc213b7686ec60 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Mon, 28 Feb 2022 07:15:49 +0200 Subject: [PATCH] fix(k8s/application): allow app name to start with alphabetic character [EE-2596] (#6603) fixes [EE-2596] --- .../applications/create/createApplication.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/kubernetes/views/applications/create/createApplication.html b/app/kubernetes/views/applications/create/createApplication.html index ffda79c1e..93061df24 100644 --- a/app/kubernetes/views/applications/create/createApplication.html +++ b/app/kubernetes/views/applications/create/createApplication.html @@ -110,7 +110,7 @@ ng-model="ctrl.formValues.Name" ng-change="ctrl.onChangeName()" placeholder="my-app" - ng-pattern="/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/" + ng-pattern="/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/" auto-focus required ng-disabled="ctrl.state.isEdit" @@ -122,14 +122,16 @@

This field is required.

-

This field must consist of lower case alphanumeric characters or '-', and contain at most 63 - characters, and must start and end with an alphanumeric character (e.g. 'my-name', or 'abc-123').

+

+ + This field must consist of lower case alphanumeric characters or '-', contain at most 63 characters, start with an alphabetic character, and end with an + alphanumeric character (e.g. 'my-name', or 'abc-123'). +

-

An application with the same name already exists inside the selected namespace.

+

+ + An application with the same name already exists inside the selected namespace. +