Commit f6cb2fce authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #49587 from ryanmcnamara/rm/improve-error-message

Automatic merge from submit-queue (batch tested with PRs 48068, 49587) DNS name error message improvement **What this PR does / why we need it**: Small error message fix. The error message misled me slightly / would have saved time if correct **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # n/a **Special notes for your reviewer**: n/a **Release note**: n/a
parents 6b529fb0 d717bf53
...@@ -126,7 +126,7 @@ func IsDNS1123Subdomain(value string) []string { ...@@ -126,7 +126,7 @@ func IsDNS1123Subdomain(value string) []string {
} }
const dns1035LabelFmt string = "[a-z]([-a-z0-9]*[a-z0-9])?" const dns1035LabelFmt string = "[a-z]([-a-z0-9]*[a-z0-9])?"
const dns1035LabelErrMsg string = "a DNS-1035 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character" const dns1035LabelErrMsg string = "a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character"
const DNS1035LabelMaxLength int = 63 const DNS1035LabelMaxLength int = 63
var dns1035LabelRegexp = regexp.MustCompile("^" + dns1035LabelFmt + "$") var dns1035LabelRegexp = regexp.MustCompile("^" + dns1035LabelFmt + "$")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment