From d9be1893b71475a8532097643c24f07c9f941fa4 Mon Sep 17 00:00:00 2001 From: noobhappylife Date: Wed, 18 Nov 2026 05:52:37 +0000 Subject: [PATCH] [Kubernetes] Bound client to the upstream-supported model API --- sky/setup_files/dependencies.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sky/setup_files/dependencies.py b/sky/setup_files/dependencies.py index de52ecfb8fb..ee1f9531cb3 100644 --- a/sky/setup_files/dependencies.py +++ b/sky/setup_files/dependencies.py @@ -158,11 +158,10 @@ # Kubernetes 32.0.0 has an authentication bug: # https://github.com/kubernetes-client/python/issues/2333 -# Kubernetes 36.0.0 drops the Authorization header for in-cluster -# config, causing 401s from the apiserver. Fixed in 36.0.1: -# https://github.com/kubernetes-client/python/pull/2585 +# Match upstream's <36 bound: newer generated models are incompatible with +# the pod-config validator (e.g. Dict[str, str] in Kubernetes 37). kubernetes_dependencies = [ - 'kubernetes>=20.0.0,!=32.0.0,!=36.0.0', + 'kubernetes>=20.0.0,<36.0.0,!=32.0.0', 'websockets', 'python-dateutil', ]