lib/promscrape/discovery/kubernetes: update stale comments

This commit is contained in:
Aliaksandr Valialkin 2020-04-17 13:42:32 +03:00
parent da05904638
commit 6764efde39
5 changed files with 5 additions and 5 deletions

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {