-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make proxy optional for k8s_metadata_decorator (#239)
* Added `allow_proxy` option (default: false) for enabling or disabling the use of a proxy for this operator. Generally, you would not want to use a proxy for connections to the Kubernetes API. The Kubernetes client, by default, will use any proxy set at HTTP_PROXY or HTTPS_PROXY unless the proxy function is set. supporting docs: - https://godoc.org/k8s.io/client-go/rest#Config - https://golang.org/pkg/net/http/#ProxyFromEnvironment resolves #238 * changelog: using a proxy causes internal API timeout * Clarify that boolean is enabling / disabling proxy support when communicating with the k8s api * Use mocked time function for tests Co-authored-by: Dan Jaglowski <[email protected]>
- Loading branch information
1 parent
92e9403
commit 0a43d10
Showing
5 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters