Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[k8s] Pin kubernetes-python versions to avoid auth errors #4604

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

romilbhardwaj
Copy link
Collaborator

Kubernetes 32.0.0 has an auth bug which breaks sky: kubernetes-client/python#2333

@@ -121,7 +121,8 @@
'cloudflare': aws_dependencies,
'scp': local_ray,
'oci': ['oci'] + local_ray,
'kubernetes': ['kubernetes>=20.0.0'],
# Kubernetes 32.0.0 has an authentication bug: https://github.com/kubernetes-client/python/issues/2333 # pylint: disable=line-too-long
'kubernetes': ['kubernetes>=20.0.0,<32.0.0'],
Copy link
Collaborator

@Michaelvll Michaelvll Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about the following, in case there is a new fix later?

Suggested change
'kubernetes': ['kubernetes>=20.0.0,<32.0.0'],
'kubernetes': ['kubernetes>=20.0.0,!=32.*'],

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kubernetes maintainers haven't acknowledged it yet as a bug, so it's unclear if the fix would involve some changes in our code. Might be safer to pin to versions that are known to work

@romilbhardwaj romilbhardwaj merged commit 49f52fb into master Jan 26, 2025
18 checks passed
@romilbhardwaj romilbhardwaj deleted the k8s-pin-version branch January 26, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants