Log info when successfully loading certificates

This commit is contained in:
Matthias Loibl 2018-12-03 17:57:19 +01:00
parent bef034e699
commit 4a16ae6d9a
No known key found for this signature in database
GPG key ID: B1C7DF661ABB2C1A

View file

@ -76,14 +76,14 @@ func (cmd *PrometheusAdapter) makePromClient() (prom.Client, error) {
return nil, err
}
httpClient = prometheusCAClient
fmt.Println("successfully loaded ca file")
glog.Info("successfully loaded ca from file")
} else {
kubeconfigHTTPClient, err := makeKubeconfigHTTPClient(cmd.PrometheusAuthInCluster, cmd.PrometheusAuthConf)
if err != nil {
return nil, err
}
httpClient = kubeconfigHTTPClient
fmt.Println("successfully using in cluster")
glog.Info("successfully using in-cluster auth")
}
genericPromClient := prom.NewGenericAPIClient(httpClient, baseURL)