From 0bb280044ec4db3a53bf32f9bfbd72b7c4fb1c9c Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Thu, 26 Nov 2020 16:15:09 -0800 Subject: [PATCH] Fix typo in IP allocator error --- pkg/registry/core/service/storage/rest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/registry/core/service/storage/rest.go b/pkg/registry/core/service/storage/rest.go index a2c1a119bfd..5d6102d6295 100644 --- a/pkg/registry/core/service/storage/rest.go +++ b/pkg/registry/core/service/storage/rest.go @@ -612,7 +612,7 @@ func (rs *REST) allocClusterIPs(service *api.Service, toAlloc map[api.IPFamily]s } else { parsedIP := net.ParseIP(ip) 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) } allocated[family] = ip