From 3c8140f2e6e3b84b58e5787a4e7a6250c01e2177 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Tue, 18 Oct 2016 16:20:26 +0200 Subject: [PATCH] kubernetes: fix typo in endpoint switch case --- retrieval/discovery/kubernetes/kubernetes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retrieval/discovery/kubernetes/kubernetes.go b/retrieval/discovery/kubernetes/kubernetes.go index 9b9da790d..ed228a5ad 100644 --- a/retrieval/discovery/kubernetes/kubernetes.go +++ b/retrieval/discovery/kubernetes/kubernetes.go @@ -110,7 +110,7 @@ func (k *Kubernetes) Run(ctx context.Context, ch chan<- []*config.TargetGroup) { rclient := k.client.Core().GetRESTClient() switch k.role { - case "endpoint": + case "endpoints": elw := cache.NewListWatchFromClient(rclient, "endpoints", api.NamespaceAll, nil) slw := cache.NewListWatchFromClient(rclient, "services", api.NamespaceAll, nil) plw := cache.NewListWatchFromClient(rclient, "pods", api.NamespaceAll, nil)