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

Fix fallback when Kubernetes versions list is unavailable #7515

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mook-as
Copy link
Contributor

@mook-as mook-as commented Sep 19, 2024

If we previously had Kubernetes enabled, then the user deletes the k3s-versions.json cache and we fail to download a new one, we would previously fall over hard. This makes it so we automatically disable Kubernetes in that situation (and add a diagnostic so the user has a chance of figuring out what was wrong).

Fixes #7484

TypeScript can't compute the type of the payload correctly without using a
normal discriminated union; this doesn't look as nice, but at least it
seems to work.

Signed-off-by: Mark Yen <[email protected]>
If Rancher Desktop was previously started with a version, but the user
wipes the `k3s-versions.json` cache and we fail to download a new copy,
handle the error and disable Kubernetes instead of throwing an error.  To
make sure the user is aware of the issue, also pop a diagnostic to describe
the situation.

Signed-off-by: Mark Yen <[email protected]>
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.

No container engine client available
1 participant