Skip to content

✨ (helm/v2-alpha): Add manager.envOverrides for CLI env overrides#5495

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:masterfrom
camilamacedo86:helm-envvar
Feb 23, 2026
Merged

✨ (helm/v2-alpha): Add manager.envOverrides for CLI env overrides#5495
k8s-ci-robot merged 1 commit intokubernetes-sigs:masterfrom
camilamacedo86:helm-envvar

Conversation

@camilamacedo86
Copy link
Member

@camilamacedo86 camilamacedo86 commented Feb 21, 2026

Charts define manager.env as a list to support Kubernetes env entries with valueFrom (e.g. fieldRef, secretKeyRef, etc.). The list format is required for operator defaults like RELATED_IMAGE_*, MEMORY_LIMIT_BYTES, WATCH_NAMESPACE, but it makes Helm CLI overrides painful because --set doesn’t target list items.

This PR adds manager.envOverrides (map) for install-time overrides/additions. The chart renders manager.env + manager.envOverrides, and when the same env var name exists in both, the override value wins.

Example:

helm install my-op ./dist/chart/ \
  --set manager.envOverrides.LOG_LEVEL=debug \
  --set manager.envOverrides.DEBUG=true

Closes: #5489

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 21, 2026
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 21, 2026
@camilamacedo86
Copy link
Member Author

@asergeant01 @porridge

Could you please give a hand in this one?
Could you please review it?

@porridge
Copy link
Contributor

@asergeant01 @porridge

Could you please give a hand in this one? Could you please review it?

Wow, thanks for the super fast turn around @camilamacedo86 ! I will be back in the office on Tuesday and should be able to take a look then.

Copy link
Contributor

@asergeant01 asergeant01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from my side

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: asergeant01, camilamacedo86

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@camilamacedo86 camilamacedo86 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 23, 2026
@k8s-ci-robot k8s-ci-robot merged commit 519b439 into kubernetes-sigs:master Feb 23, 2026
40 checks passed
@camilamacedo86 camilamacedo86 deleted the helm-envvar branch February 23, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

helm/v2-alpha: unergonomic env var support

4 participants