mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #90411 from johscheuer/improve-error-message
Improve error message when service cidr is to small
This commit is contained in:
commit
9706b70213
@ -397,7 +397,7 @@ func ValidateIPNetFromString(subnetStr string, minAddrs int64, isDualStack bool,
|
||||
for _, s := range subnets {
|
||||
numAddresses := utilnet.RangeSize(s)
|
||||
if numAddresses < minAddrs {
|
||||
allErrs = append(allErrs, field.Invalid(fldPath, s, "subnet is too small"))
|
||||
allErrs = append(allErrs, field.Invalid(fldPath, s.String(), "subnet is too small"))
|
||||
}
|
||||
}
|
||||
return allErrs
|
||||
|
Loading…
Reference in New Issue
Block a user