mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-05 17:27:51 +00:00
Log info when successfully loading certificates
This commit is contained in:
parent
bef034e699
commit
4a16ae6d9a
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue