Open viniciusdc opened 1 day ago
I am not entirely sure if this should be worked on, though, since we will be decommissioning DO soon. Addressing this requires a global update in the supported Kubertnes version across all providers. If we are happy with bumping it for all, then it becomes pretty straightforward to fix.
Describe the bug
When initializing Nebari with DigitalOcean as the cloud provider, an IndexError: list index out of range is encountered. https://github.com/nebari-dev/nebari/actions/runs/11601903835/job/32305692369?pr=2795
https://github.com/nebari-dev/nebari/blob/88dfe2447c56689c3a9828e6abef4e1c02903faf/src/_nebari/provider/cloud/digital_ocean.py#L62-L70
This occurs because the HIGHEST_SUPPORTED_K8S_VERSION https://github.com/nebari-dev/nebari/blob/88dfe2447c56689c3a9828e6abef4e1c02903faf/src/_nebari/constants.py#L15
Which is lower than the Kubernetes versions currently supported by DigitalOcean (
['1.29.9', '1.30.5', '1.31.1']
). As a result, the version filtering logic fails, leading to an empty list and subsequent error.Expected behavior
Init shoudl work as expected, and also, the error message should be more descriptive
OS and architecture in which you are running Nebari
Linux (CI)
How to Reproduce the problem?
Here's a code snippet you can use to reproduce the error:
Command output
No response
Versions and dependencies used.
No response
Compute environment
Digital Ocean
Integrations
No response
Anything else?
No response