From 81bba8015977952b1d923f2368371ff314d0d063 Mon Sep 17 00:00:00 2001 From: Xigang Wang Date: Mon, 19 Aug 2019 21:34:09 +0800 Subject: [PATCH] Change the ToEndpoints method comment to replace the Service with Endpoints (#3146) --- plugin/kubernetes/object/endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/kubernetes/object/endpoint.go b/plugin/kubernetes/object/endpoint.go index aa93b4ceb..bd0afeef3 100644 --- a/plugin/kubernetes/object/endpoint.go +++ b/plugin/kubernetes/object/endpoint.go @@ -43,7 +43,7 @@ type EndpointPort struct { // EndpointsKey return a string using for the index. func EndpointsKey(name, namespace string) string { return name + "." + namespace } -// ToEndpoints converts an api.Service to a *Service. +// ToEndpoints converts an api.Endpoints to a *Endpoints. func ToEndpoints(obj interface{}) interface{} { end, ok := obj.(*api.Endpoints) if !ok {