From 145d728a7e60482c05d358c7a3c7f62d6c11297d Mon Sep 17 00:00:00 2001 From: Romil Bhardwaj Date: Mon, 9 Sep 2024 09:58:09 -0700 Subject: [PATCH] [k8s] Suppress insecure request warnings (#3888) * Suppress insecure request warnings * make disable_warnings run in load_config * lint --- sky/adaptors/kubernetes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sky/adaptors/kubernetes.py b/sky/adaptors/kubernetes.py index 52eb339d213..43f2693f187 100644 --- a/sky/adaptors/kubernetes.py +++ b/sky/adaptors/kubernetes.py @@ -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