From fb9d0898fc9efa60ae511be5384af145da0e92ab Mon Sep 17 00:00:00 2001 From: Tim Ramlot <42113979+inteon@users.noreply.github.com> Date: Wed, 1 Feb 2023 08:40:14 +0100 Subject: [PATCH] pass HTTPClient to API Reader too Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com> --- pkg/cluster/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index 85f8821c9a..2bf61b7141 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -202,7 +202,7 @@ func New(config *rest.Config, opts ...Option) (Cluster, error) { } // Create the API Reader, a client with no cache. - apiReader, err := client.New(config, client.Options{Scheme: options.Scheme, Mapper: mapper}) + apiReader, err := client.New(config, client.Options{HTTPClient: options.HTTPClient, Scheme: options.Scheme, Mapper: mapper}) if err != nil { return nil, err }