Skip to content

Include --version in helm upgrade #1531

@jijiechen

Description

@jijiechen

Describe the bug
The helm.Upgrade is always using the latest version of the chart to install the new version and ignoring the version value in the helm.Options parameter, which should be honored.

To Reproduce
Steps to reproduce the behavior, code snippets and examples which can be used to reproduce the issue.

helmOpts := &helm.Options{
		SetValues:      values,
		KubectlOptions: c.GetKubectlOptions(Config.KumaNamespace),
                 Version: c.opts.helmChartVersion,
	}
helm.UpgradeE(c.t, helmOpts, "chart-repo/chart-name", "my-release")

Expected behavior
Chat of version specified in helm.Options should be used.

Nice to have

  • Terminal output
  • Screenshots

Versions

  • Terratest version: v0.48.2
  • Environment details (Ubuntu 20.04, Windows 10, etc.): Ubuntu 24.04, orthogonal to the OS.

Additional context
(none)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions