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', ]