Skip to content

Commit 81e896e

Browse files
committed
MOD: minor comment update for error message
1 parent 0c7d872 commit 81e896e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kubeadm/app/apis/kubeadm/validation/validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ func ValidateCertSANs(altnames []string, fldPath *field.Path) field.ErrorList {
310310
if errs := validation.IsDNS1123Subdomain(altname); len(errs) != 0 {
311311
if errs2 := validation.IsWildcardDNS1123Subdomain(altname); len(errs2) != 0 {
312312
if net.ParseIP(altname) == nil {
313-
allErrs = append(allErrs, field.Invalid(fldPath, altname, fmt.Sprintf("altname is not a valid IP address or DNS label or Wildcard DNS label: %s; %s", strings.Join(errs, "; "), strings.Join(errs2, "; "))))
313+
allErrs = append(allErrs, field.Invalid(fldPath, altname, fmt.Sprintf("altname is not a valid IP address, DNS label or a DNS label with subdomain wildcards: %s; %s", strings.Join(errs, "; "), strings.Join(errs2, "; "))))
314314
}
315315
}
316316
}

0 commit comments

Comments
 (0)