-
-
Notifications
You must be signed in to change notification settings - Fork 467
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
[BUGFIX] add default k3s version (honored by go install) #24
Conversation
@cartyc So the issue is that the Makefile assigns the k3s version and there is no default in the go source. To set a default in the go source and still respect the Makefile build, you should set the default value here https://github.com/rancher/k3d/blob/60c622e822d3a4d724a42d9e777fddfb3af3325c/version/version.go#L7 Just do var K3sVersion = "v0.4.0" |
Thanks @ibuildthecloud . My Go is a little rusty these days, and I didn't consider the makefile. Updated it in the PR. |
I think I should cc @iwilltry42 for this since originally we were keeping the k3s version static but shifted that to Makefile. |
I'd like to keep the ability to do a |
@iwilltry42 Would a common config file that both the Makefile and Go code could draw from be appropriate in this case? Not sure if that would add or reduce the complexity for the team. |
@cartyc , I guess that wouldn't change too much. The Makefile is supposed to grab the latest version from GitHub. The Go code shouldn't do this dynamically as I'd expect it to also work in airgapped systems. |
Maybe we can set the default tag to "latest" and then show a warning when k3d create is done |
@zeerorg that sounds like a good idea, but k3s dockerhub repo doesn't use a proper latest tag, as far as I know. |
Ya that's why I went with the |
I'll leave that up to you guys here 🤷♂️ |
I just pushed |
I'll update the PR to use |
Did a test deploy and it deployed successfully
|
Cool, thank you 👍 |
Thanks @iwilltry42 ! |
Added a small fix to add the default version for k3s docker image,
v0.4.0
as per my issue #23