Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
Add option to skip verifying certs (#47)
Browse files Browse the repository at this point in the history
* Add option to skip verifying certs

To work with self-signed certs

#40

* Whoops

Co-authored-by: Henning Jacobs <[email protected]>
  • Loading branch information
zoidyzoidzoid and hjacobs authored Apr 3, 2020
1 parent 742d63c commit f7ed8e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pykube/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def __init__(
config: KubeConfig,
timeout: float = DEFAULT_HTTP_TIMEOUT,
dry_run: bool = False,
verify: bool = True,
http_adapter: Optional[requests.adapters.HTTPAdapter] = None,
):
"""
Expand All @@ -231,6 +232,7 @@ def __init__(
session.mount("https://", http_adapter)
session.mount("http://", http_adapter)
self.session = session
self.session.verify = verify

@property
def url(self):
Expand Down

0 comments on commit f7ed8e9

Please sign in to comment.