aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGravatar Xigang Wang <wangxigang2014@gmail.com> 2019-08-19 21:34:09 +0800
committerGravatar Chris O'Haver <cohaver@infoblox.com> 2019-08-19 09:34:09 -0400
commit81bba8015977952b1d923f2368371ff314d0d063 (patch)
treec4c6730fef0df6682af3715f7377f0939ebf5259 /plugin
parent6f028d04278fb9dc9a67e125c507ee5252b8d859 (diff)
downloadcoredns-81bba8015977952b1d923f2368371ff314d0d063.tar.gz
coredns-81bba8015977952b1d923f2368371ff314d0d063.tar.zst
coredns-81bba8015977952b1d923f2368371ff314d0d063.zip
Change the ToEndpoints method comment to replace the Service with Endpoints (#3146)
Diffstat (limited to 'plugin')
-rw-r--r--plugin/kubernetes/object/endpoint.go2
1 files changed, 1 insertions, 1 deletions
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 {