mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Fix typo in IP allocator error
This commit is contained in:
parent
5970c4671c
commit
0bb280044e
@ -612,7 +612,7 @@ func (rs *REST) allocClusterIPs(service *api.Service, toAlloc map[api.IPFamily]s
|
|||||||
} else {
|
} else {
|
||||||
parsedIP := net.ParseIP(ip)
|
parsedIP := net.ParseIP(ip)
|
||||||
if err := allocator.Allocate(parsedIP); err != nil {
|
if err := allocator.Allocate(parsedIP); err != nil {
|
||||||
el := field.ErrorList{field.Invalid(field.NewPath("spec", "clusterIPs"), service.Spec.ClusterIPs, fmt.Sprintf("failed to allocated ip:%v with error:%v", ip, err))}
|
el := field.ErrorList{field.Invalid(field.NewPath("spec", "clusterIPs"), service.Spec.ClusterIPs, fmt.Sprintf("failed to allocate IP %v: %v", ip, err))}
|
||||||
return allocated, errors.NewInvalid(api.Kind("Service"), service.Name, el)
|
return allocated, errors.NewInvalid(api.Kind("Service"), service.Name, el)
|
||||||
}
|
}
|
||||||
allocated[family] = ip
|
allocated[family] = ip
|
||||||
|
Loading…
Reference in New Issue
Block a user