Skip to content

Commit

Permalink
Merge pull request #724 from sgratch/update-text-msg-for-legacy-names…
Browse files Browse the repository at this point in the history
…-by-removing-len

Remove the len info from the validation text msg of legacy name fields
  • Loading branch information
yaacov authored Sep 11, 2023
2 parents b775bca + 7686ad4 commit 13b681b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/legacy/src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const dnsLabelNameSchema = yup
.max(253)
.matches(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/, {
message: ({ label }) =>
`${label} must be a valid Kubernetes name (i.e., must contain no more than 253 characters, consists of lower case alphanumeric characters , '-' or '.' and starts and ends with an alphanumeric character).`,
`${label} must be a valid Kubernetes name (i.e., consists of lower case alphanumeric characters , '-' or '.' and starts and ends with an alphanumeric character).`,
excludeEmptyString: true,
});

Expand Down

0 comments on commit 13b681b

Please sign in to comment.