From 01c7559856f6c81d0deb7d042c06bee15be65527 Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Tue, 6 Sep 2022 14:38:30 +0200 Subject: [PATCH] fix(docs): wrong comment block for ResolveEndpoint function --- staging/src/k8s.io/apiserver/pkg/util/proxy/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/apiserver/pkg/util/proxy/proxy.go b/staging/src/k8s.io/apiserver/pkg/util/proxy/proxy.go index f0a4901b370..8f6015cfaa0 100644 --- a/staging/src/k8s.io/apiserver/pkg/util/proxy/proxy.go +++ b/staging/src/k8s.io/apiserver/pkg/util/proxy/proxy.go @@ -38,7 +38,7 @@ func findServicePort(svc *v1.Service, port int32) (*v1.ServicePort, error) { return nil, errors.NewServiceUnavailable(fmt.Sprintf("no service port %d found for service %q", port, svc.Name)) } -// ResourceLocation returns a URL to which one can send traffic for the specified service. +// ResolveEndpoint returns a URL to which one can send traffic for the specified service. func ResolveEndpoint(services listersv1.ServiceLister, endpoints listersv1.EndpointsLister, namespace, id string, port int32) (*url.URL, error) { svc, err := services.Services(namespace).Get(id) if err != nil {