[BUG] - IndexError
during initialization with DigitalOcean provider
#2810
Labels
type: bug 🐛
Something isn't working
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
nebari/src/_nebari/provider/cloud/digital_ocean.py
Lines 62 to 70 in 88dfe24
This occurs because the HIGHEST_SUPPORTED_K8S_VERSION
nebari/src/_nebari/constants.py
Line 15 in 88dfe24
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
The text was updated successfully, but these errors were encountered: