-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Wrong kubernetes version in requirements? #585
Comments
Thanks for raising such a detailed issue. If you have an interest in making the PR to bump the minimum up that would be awesome! Feel free to ping me directly for review. |
What version should I change to - first that introduced |
I think the first that introduced the We currently don't test minimum versions (which is how this happened in the first place) and I don't expect we will start now. If problems like this start coming up more often then of course we can reassess that. If the CI passes with your PR then I'm happy to merge it. If you want to test it more robustly locally I recommend you create a fresh environment and then downgrade the |
The classic |
Describe the issue:
Due the listed version of
kubernetes
dependency (v12.0.1, see here), in certain condition,pip install dask_kubernetes
would install older versions ofkubernetes
(e.g. 17.17.0) which do not yet haveV1PodDisruptionBudget
class / attribute. This will result in the following error when trying to start a cluster:Minimal Complete Verifiable Example:
Use the following docker file to build an image (
docker build -t dask-deps .
)Run the container (
docker run --rm -it dask-deps bash
),and manually install kubectl and configure it (create relevant
./kube/config
)Then, install the dependencies:
The following code would generate the error (vanilla creation of
KubeCluster
)This should throw an error:
The fix is trivial - need to update requirements for the repo/package to the first version where 'V1PodDisruptionBudget' was introduced - seems that was introduced in v21.7.0. (I can try to make a PR later)
Anything else we need to know?:
With plain
pip install dask_kubernetes
, a later version (24) ofkubernetes
is install and the bug won't happen. It seems that the project I work on somehow introduce and cause version 17 to be installed...Environment:
The text was updated successfully, but these errors were encountered: