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

Add cached k3s versions to k3s-versions list automatically #8003

Open
jandubois opened this issue Dec 23, 2024 · 0 comments
Open

Add cached k3s versions to k3s-versions list automatically #8003

jandubois opened this issue Dec 23, 2024 · 0 comments
Labels
area/kubernetes k8s and related, like traefik kind/enhancement New feature or request

Comments

@jandubois
Copy link
Member

jandubois commented Dec 23, 2024

This is mostly relevant to air-gapped setups: it is not enough to put a k3s version in the cache directory; it must also be added to k3s-versions.json. Otherwise the version will be invisible.

This is especially error-prone when setting up an offline config. Rancher Desktop will have a bundled k3s-versions.json, but any newer releases of k3s will not be included.

I think during startup we should add all locally found instances to k3s-versions.json. That makes it also easier to add unreleased k3s versions to the cache for pre-release testing.

Once implemented the special air-gap instructions for k3s-versions.json can be removed (see also rancher-sandbox/docs.rancherdesktop.io#409).

@jandubois jandubois added kind/enhancement New feature or request area/kubernetes k8s and related, like traefik labels Dec 23, 2024
jandubois added a commit to jandubois/docs.rancherdesktop.io that referenced this issue Dec 30, 2024
The bundled `k3s-versions.json` file generally makes is unneccessary to
bundle a custom version unless the user also includes very recent k3s
releases not yet included. Even then downloading the latest version from
GitHub is the easiest way; it gets updated daily via GHA.

Once rancher-sandbox/rancher-desktop#8003 is
implemented we can get rid of these instructions completely.

Commit also updates some sample k3s versions because v1.19 is no longer
supported.

Signed-off-by: Jan Dubois <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubernetes k8s and related, like traefik kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant