mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-07 15:42:12 -04:00
kubernetes: fix typo in endpoint switch case
This commit is contained in:
parent
228bfc1bb5
commit
3c8140f2e6
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue