-
Notifications
You must be signed in to change notification settings - Fork 418
[bootloose image] Infer helm version from go mod #5861
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
base: main
Are you sure you want to change the base?
Conversation
I'd either do the version detection as we do it for k0sctl, so that we can rely on dependabot, or remove the interest completely. |
4f57a91
to
f54ba5e
Compare
That's much saner, I changed it so that we just infer it from go.mod using |
f54ba5e
to
c13a0e7
Compare
inttest/Makefile
Outdated
@@ -19,6 +19,7 @@ bin: | |||
bin/sonobuoy: | bin | |||
$(curl) $(sonobuoy_url) | tar -C bin/ -zxv $(notdir $@) | |||
|
|||
helm_version = $(strip $(subst v,,$(shell cd .. && go list -m -f '{{.Version}}' helm.sh/helm/v3 2>/dev/null))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, usually this is handled via vars.sh, but that's in the repo root and not part of the inttest folder ... 🤔 But since we have a cd ..
in here anyways, I'd prefer sth. like ../vars.sh FROM=.. helm_version
.
Or, since we're already looking into Renovate, we could just leave the version here around and add a regex pattern that bundles the updates 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was my initial intention but I think this is saner.
Anyway I changed it to use vars.sh
Fix the mismatch between go.mod and embedded-bins/Makefile.variables once and for all. Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <[email protected]>
c13a0e7
to
4231a2f
Compare
This pull request has merge conflicts that need to be resolved. |
Description
Fix the mismatch between
go.mod
andembedded-bins/Makefile.variables