Skip to content

Tracking: Helm 4 for testing #814

@adwk67

Description

@adwk67

Description

Some issues will be encountered when running our tests with Helm 4.x. This ticket consolidates these in one place.
The issues mentioned below will require updates to operator-templating (for Tilt) and changing test definitions so that they run with Helm 4.x.

Tasks

N.B. this list is not exhaustive and can/should be extended as necessary.

Tilt

When deploying Tilt using Helm 4.x the following error occurs:

Initial Build
Loading Tiltfile at: /home/andrew/gitrepos/airflow-operator/Tiltfile
ERROR: Traceback (most recent call last):
  /home/andrew/gitrepos/airflow-operator/Tiltfile:40:8: in <toplevel>
Error in helm: exit status 1

3rd party chart warnings

Some warnings marked as deprecated and tolerated with Helm 3.x will now cause errors.
e.g. for bitnami/minio we have:

extraEnvVars:
  - name: BITNAMI_DEBUG
    value: "true"

the warning with Helm 3.x

I0108 16:56:21.615903  781766 warnings.go:110] "Warning: spec.template.spec.containers[0].env[11]:
hides previous definition of \"BITNAMI_DEBUG\", which may be dropped when using apply"

will now trigger an error in Helm 4.x:

Error: INSTALLATION FAILED: failed to create typed patch object
(kuttl-test-up-cattle/minio; apps/v1, Kind=Deployment):
.spec.template.spec.containers[name="minio"].env:
duplicate entries for key [name="BITNAMI_DEBUG"]

Remove this and similar env-vars from 3rd party installation values. Test with 4.x:

14:36 $ helm version
version.BuildInfo{Version:"v4.1.1", GitCommit:"5caf0044d4ef3d62a955440272999e139aafbbed", GitTreeState:"clean", GoVersion:"go1.25.7", KubeClientVersion:"v1.35"}

Acceptance Criteria

  • all tests run when using Helm 4.x
  • operators can be deployed with Tilt when using Helm 4.x

Release Notes

Not required as the issues are not user-facing (unless they are developing, in which case we should check if we have specified a helm version anywhere and highlight issues that users may encounter).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Done
Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions