kubernetes: fix typos
From golang.org/cl/36692
Change-Id: Icc63edd28b687cf30c222a3125371ad912bc6da7
Reviewed-on: https://go-review.googlesource.com/36802
Reviewed-by: Kevin Burke <kev@inburke.com>
Reviewed-by: Matt Layher <mdlayher@gmail.com>
diff --git a/kubernetes/client.go b/kubernetes/client.go
index 97d5cdd..ded2ab4 100644
--- a/kubernetes/client.go
+++ b/kubernetes/client.go
@@ -152,7 +152,7 @@
return nil
}
-// GetServices return all services in the cluster, regardless of status.
+// GetServices returns all services in the cluster, regardless of status.
func (c *Client) GetServices(ctx context.Context) ([]api.Service, error) {
var list api.ServiceList
if err := c.do(ctx, "GET", c.nsEndpoint()+"services", &list); err != nil {
@@ -170,7 +170,7 @@
}
// GetServiceEndpoints returns the endpoints for the named service.
-// If portName is non-empty, only endpoints matching that port nae are returned.
+// If portName is non-empty, only endpoints matching that port name are returned.
func (c *Client) GetServiceEndpoints(ctx context.Context, serviceName, portName string) ([]Endpoint, error) {
var res api.Endpoints
// TODO: path escape serviceName?