File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
pkg/webhook/v1beta1/experiment/validator Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,9 @@ func (g *DefaultValidator) InjectClient(c client.Client) {
6969func (g * DefaultValidator ) ValidateExperiment (instance , oldInst * experimentsv1beta1.Experiment ) error {
7070 namingConvention , _ := regexp .Compile ("^[a-z]([-a-z0-9]*[a-z0-9])?" )
7171 if ! namingConvention .MatchString (instance .Name ) {
72- msg := "Name must consist of lower case alphanumeric characters or '-'," +
72+ msg := "name must consist of lower case alphanumeric characters or '-'," +
7373 " start with an alphabetic character, and end with an alphanumeric character" +
74- " (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?)'"
74+ " (e.g. 'my-name', or 'abc-123', regex used for validation is '^ [a-z]([-a-z0-9]*[a-z0-9])?)'"
7575
7676 return fmt .Errorf (msg )
7777 }
You can’t perform that action at this time.
0 commit comments