mirror of
https://github.com/coreos/prometheus-operator.git
synced 2026-02-05 06:45:27 +01:00
[CHORE] allowing kubeconfig as parameter (#6623)
Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>
This commit is contained in:
@@ -224,7 +224,12 @@ func run(fs *flag.FlagSet) int {
|
||||
|
||||
k8sutil.MustRegisterClientGoMetrics(r)
|
||||
|
||||
restConfig, err := k8sutil.NewClusterConfig(apiServer, tlsClientConfig, impersonateUser)
|
||||
restConfig, err := k8sutil.NewClusterConfig(k8sutil.ClusterConfig{
|
||||
Host: apiServer,
|
||||
TLSConfig: tlsClientConfig,
|
||||
AsUser: impersonateUser,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
level.Error(logger).Log("msg", "failed to create Kubernetes client configuration", "err", err)
|
||||
cancel()
|
||||
|
||||
Reference in New Issue
Block a user