Change the ToEndpoints method comment to replace the Service with Endpoints (#3146)
This commit is contained in:
parent
6f028d0427
commit
81bba80159
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ type EndpointPort struct {
|
||||||
// EndpointsKey return a string using for the index.
|
// EndpointsKey return a string using for the index.
|
||||||
func EndpointsKey(name, namespace string) string { return name + "." + namespace }
|
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{} {
|
func ToEndpoints(obj interface{}) interface{} {
|
||||||
end, ok := obj.(*api.Endpoints)
|
end, ok := obj.(*api.Endpoints)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue