From 6764efde399f9074ce534b8e37ef9fa52bad212a Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 17 Apr 2020 13:42:32 +0300 Subject: [PATCH] lib/promscrape/discovery/kubernetes: update stale comments --- lib/promscrape/discovery/kubernetes/endpoints.go | 2 +- lib/promscrape/discovery/kubernetes/ingress.go | 2 +- lib/promscrape/discovery/kubernetes/node.go | 2 +- lib/promscrape/discovery/kubernetes/pod.go | 2 +- lib/promscrape/discovery/kubernetes/service.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/promscrape/discovery/kubernetes/endpoints.go b/lib/promscrape/discovery/kubernetes/endpoints.go index c657a3ae04..43a79daf29 100644 --- a/lib/promscrape/discovery/kubernetes/endpoints.go +++ b/lib/promscrape/discovery/kubernetes/endpoints.go @@ -5,7 +5,7 @@ import ( "fmt" ) -// GetEndpointsLabels returns labels for k8s endpoints obtained from the given apiServer +// GetEndpointsLabels returns labels for k8s endpoints obtained from the given cfg. func GetEndpointsLabels(cfg *APIConfig) ([]map[string]string, error) { data, err := getAPIResponse(cfg, "endpoints", "/api/v1/endpoints") if err != nil { diff --git a/lib/promscrape/discovery/kubernetes/ingress.go b/lib/promscrape/discovery/kubernetes/ingress.go index 542111e31a..670b41b57b 100644 --- a/lib/promscrape/discovery/kubernetes/ingress.go +++ b/lib/promscrape/discovery/kubernetes/ingress.go @@ -5,7 +5,7 @@ import ( "fmt" ) -// GetIngressesLabels returns labels for k8s ingresses obtained from the given apiServer +// GetIngressesLabels returns labels for k8s ingresses obtained from the given cfg. func GetIngressesLabels(cfg *APIConfig) ([]map[string]string, error) { data, err := getAPIResponse(cfg, "ingress", "/apis/extensions/v1beta1/ingresses") if err != nil { diff --git a/lib/promscrape/discovery/kubernetes/node.go b/lib/promscrape/discovery/kubernetes/node.go index d8c65b406b..bb433cfa1b 100644 --- a/lib/promscrape/discovery/kubernetes/node.go +++ b/lib/promscrape/discovery/kubernetes/node.go @@ -5,7 +5,7 @@ import ( "fmt" ) -// GetNodesLabels returns labels for k8s nodes obtained from the given apiServer. +// GetNodesLabels returns labels for k8s nodes obtained from the given cfg. func GetNodesLabels(cfg *APIConfig) ([]map[string]string, error) { data, err := getAPIResponse(cfg, "node", "/api/v1/nodes") if err != nil { diff --git a/lib/promscrape/discovery/kubernetes/pod.go b/lib/promscrape/discovery/kubernetes/pod.go index cae95e73cc..8021f61012 100644 --- a/lib/promscrape/discovery/kubernetes/pod.go +++ b/lib/promscrape/discovery/kubernetes/pod.go @@ -7,7 +7,7 @@ import ( "strings" ) -// GetPodsLabels returns labels for k8s pods obtained from the given apiServer +// GetPodsLabels returns labels for k8s pods obtained from the given cfg func GetPodsLabels(cfg *APIConfig) ([]map[string]string, error) { pods, err := getPods(cfg) if err != nil { diff --git a/lib/promscrape/discovery/kubernetes/service.go b/lib/promscrape/discovery/kubernetes/service.go index b1830e9ce9..26054135b2 100644 --- a/lib/promscrape/discovery/kubernetes/service.go +++ b/lib/promscrape/discovery/kubernetes/service.go @@ -5,7 +5,7 @@ import ( "fmt" ) -// GetServicesLabels returns labels for k8s services obtained from the given apiServer +// GetServicesLabels returns labels for k8s services obtained from the given cfg. func GetServicesLabels(cfg *APIConfig) ([]map[string]string, error) { svcs, err := getServices(cfg) if err != nil {