Add missing Kubernetes doc strings

This commit is contained in:
Fabian Reinartz 2015-08-18 14:37:28 +02:00
parent 205d391409
commit 0f5022c091

View file

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