Skip to content

[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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

juanluisvaladas
Copy link
Contributor

Description

Fix the mismatch between go.mod and embedded-bins/Makefile.variables

@juanluisvaladas juanluisvaladas requested review from a team as code owners May 20, 2025 15:40
@juanluisvaladas juanluisvaladas requested review from kke and jnummelin May 20, 2025 15:40
@juanluisvaladas juanluisvaladas enabled auto-merge May 20, 2025 18:42
@twz123
Copy link
Member

twz123 commented May 21, 2025

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.

@juanluisvaladas juanluisvaladas force-pushed the fix-helm-version branch 2 times, most recently from 4f57a91 to f54ba5e Compare May 21, 2025 09:21
@juanluisvaladas
Copy link
Contributor Author

That's much saner, I changed it so that we just infer it from go.mod using go list.

@juanluisvaladas juanluisvaladas changed the title Bump Helm to 3.18.0 in bootloose [bootloose image] Infer helm version from go mod May 21, 2025
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)))
Copy link
Member

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 🤔

Copy link
Contributor Author

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]>
Copy link
Contributor

This pull request has merge conflicts that need to be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants