From d7afebf7e6ad11b5975c687bbc30c08014ae3500 Mon Sep 17 00:00:00 2001 From: Alexander Krantz Date: Tue, 15 Jun 2021 14:04:22 -0700 Subject: [PATCH] Fix connecting to the wrong url (#9329) --- plugins/inputs/kube_inventory/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/inputs/kube_inventory/client.go b/plugins/inputs/kube_inventory/client.go index 5b53dd1fb..66455b004 100644 --- a/plugins/inputs/kube_inventory/client.go +++ b/plugins/inputs/kube_inventory/client.go @@ -29,6 +29,7 @@ func newClient(baseURL, namespace, bearerToken string, timeout time.Duration, tl CertFile: tlsConfig.TLSCert, KeyFile: tlsConfig.TLSKey, }, + Host: baseURL, BearerToken: bearerToken, ContentConfig: rest.ContentConfig{}, })