diff options
author | 2021-01-06 21:34:32 +0800 | |
---|---|---|
committer | 2021-01-06 08:34:32 -0500 | |
commit | 876650d638188f9062319a412848b3039a8d5595 (patch) | |
tree | 04cd7b4e09926f76c631bdd736e80e8c62856763 /plugin | |
parent | 1085efaf312676374533ce2d06f2f650d0a99bb0 (diff) | |
download | coredns-876650d638188f9062319a412848b3039a8d5595.tar.gz coredns-876650d638188f9062319a412848b3039a8d5595.tar.zst coredns-876650d638188f9062319a412848b3039a8d5595.zip |
Fix golint issue caused by typo (#4365)
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/kubernetes/object/endpoint.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/kubernetes/object/endpoint.go b/plugin/kubernetes/object/endpoint.go index 09429e0b2..06fc6ab3e 100644 --- a/plugin/kubernetes/object/endpoint.go +++ b/plugin/kubernetes/object/endpoint.go @@ -47,7 +47,7 @@ type EndpointPort struct { // EndpointsKey returns a string using for the index. func EndpointsKey(name, namespace string) string { return name + "." + namespace } -// toEndpoints converts an *api.Endpoints to a *Endpoints. +// ToEndpoints converts an *api.Endpoints to a *Endpoints. func ToEndpoints(obj meta.Object) (meta.Object, error) { end, ok := obj.(*api.Endpoints) if !ok { |