Skip to content

Commit

Permalink
Remove the len info from the validation text msg of legacy name fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratch committed Sep 11, 2023
1 parent 98d1719 commit 7686ad4
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 7686ad4

Please sign in to comment.