Skip to content

Commit 9361b25

Browse files
authored
Merge pull request #2163 from inteon/pass_http_client_to_apireader
🏃 Use HTTPClient to create the API Reader
2 parents 5db1738 + fb9d089 commit 9361b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cluster/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func New(config *rest.Config, opts ...Option) (Cluster, error) {
202202
}
203203

204204
// Create the API Reader, a client with no cache.
205-
apiReader, err := client.New(config, client.Options{Scheme: options.Scheme, Mapper: mapper})
205+
apiReader, err := client.New(config, client.Options{HTTPClient: options.HTTPClient, Scheme: options.Scheme, Mapper: mapper})
206206
if err != nil {
207207
return nil, err
208208
}

0 commit comments

Comments
 (0)