diff --git a/retrieval/discovery/kubernetes/discovery.go b/retrieval/discovery/kubernetes/discovery.go index c9a0f49a7..1d5384d9c 100644 --- a/retrieval/discovery/kubernetes/discovery.go +++ b/retrieval/discovery/kubernetes/discovery.go @@ -64,6 +64,7 @@ const ( serviceEndpointsURL = apiPrefix + "/namespaces/%s/endpoints/%s" ) +// KubernetesDiscovery implements a TargetProvider for Kubernetes services. type KubernetesDiscovery struct { client *http.Client Conf *config.KubernetesSDConfig @@ -78,6 +79,7 @@ type KubernetesDiscovery struct { runDone chan struct{} } +// Initialize sets up the discovery for usage. func (kd *KubernetesDiscovery) Initialize() error { client, err := newKubernetesHTTPClient(kd.Conf)