Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe01efe

Browse files
authored
fix(mise): upgrade helm to 3.21 to fix helm testdata generation (#25520)
With `helm=3.12.0`, when running `make -B helm/coder/tests/testdata/.gen-golden` it doesn't respect the namespace override defined in `helm/coder/tests/chart_test.go`: ```go // runHelmTemplate runs helm template on the given chart with the given values and // returns the raw output. func runHelmTemplate(t testing.TB, helmPath, chartDir, valuesFilePath, namespace string) (string, error) { // Ensure that valuesFilePath exists if _, err := os.Stat(valuesFilePath); err != nil { return "", xerrors.Errorf("values file %q does not exist: %w", valuesFilePath, err) } cmd := exec.Command(helmPath, "template", chartDir, "-f", valuesFilePath, "--namespace", namespace) t.Logf("exec command: %v", cmd.Args) out, err := cmd.CombinedOutput() return string(out), err } ``` This results in: ```diff $ git diff | head diff --git a/helm/coder/tests/testdata/auto_access_url_1_coder.golden b/helm/coder/tests/testdata/auto_access_url_1_coder.golden index be09066..a6a064e 100644 --- a/helm/coder/tests/testdata/auto_access_url_1_coder.golden +++ b/helm/coder/tests/testdata/auto_access_url_1_coder.golden @@ -12,14 +12,14 @@ metadata: app.kubernetes.io/version: 0.1.0 helm.sh/chart: coder-0.1.0 name: coder - namespace: coder + namespace: default ``` Signed-off-by: Danny Kopping <[email protected]>
1 parent 1ddc89c commit fe01efe

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

mise.lock

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ lazygit = "0.61.1"
6060
# the dogfood image is linux/amd64-only and nobody on the team runs
6161
# helm via mise on Windows.
6262
[tools."http:helm"]
63-
version = "3.12.0"
63+
version = "3.21.0"
6464
url = 'https://get.helm.sh/helm-v{{version}}-{{os(macos="darwin")}}-{{arch(x64="amd64")}}.tar.gz'
6565

6666
# sqlc (coder fork) bundles sqlite via cgo, so the `go install` build

0 commit comments

Comments
 (0)