digitalocean / clusterlint

A best practices checker for Kubernetes clusters. 🤠
Apache License 2.0
547 stars 45 forks source link

kube: allow wrapping the underlying http.RoundTripper #70

Closed bouk closed 4 years ago

bouk commented 4 years ago

To get more control over the underlying http.Transport this PR adds a WithTransportWrapper Option that will allow the caller to pass in a function that's used to wrap the http.RoundTripper. This will allow us to access the *http.Transport and close the connections after we're done linting.