Skip to content

Commit

Permalink
[k8s] Suppress insecure request warnings (#3888)
Browse files Browse the repository at this point in the history
* Suppress insecure request warnings

* make disable_warnings run in load_config

* lint
  • Loading branch information
romilbhardwaj authored Sep 9, 2024
1 parent e79d022 commit 145d728
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sky/adaptors/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def _load_config():
global _configured
if _configured:
return
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
try:
# Load in-cluster config if running in a pod
# Kubernetes set environment variables for service discovery do not
Expand Down

0 comments on commit 145d728

Please sign in to comment.