(helm/v2-alpha): Setting manager.envOverrides to a duplicate key fails with ssa
Author: Jay-MaddenCreated Aug 4, 2026Updated Aug 6, 2026
Labelskind/bugkind/feature
What broke? What's expected?
Setting manager.envOverrides to a duplicate in scaffolded helm chart with helm/v2-alpha fails when server side applied.
Error from server: failed to create typed patch object (default/env-repro-[RANDOM_ID]-env-override-repro-controller-manager; apps/v1, Kind=Deployment): .spec.template.spec.containers[name="manager"].env:
duplicate entries for key [name="WATCH_NAMESPACE"]This will work in client-side apply as the latest key will be implicitly accepted but this will not work with SSA.
Reproducing this issue
I have prepared a (partially vibe coded) repro script here.
Output of a run. output.log
KubeBuilder (CLI) Version
v4.15.0
PROJECT version
3
Plugin versions
- go.kubebuilder.io/v4
plugins:
helm.kubebuilder.io/v2-alpha:
manifests: ./dist/install.yaml
output: .
projectName: ...
repo: github.com/NVIDIA/...
resources:
- api:
crdVersion: v1
namespaced: true
controller: true
domain: cluster.x-k8s.io
group: addons
kind: SystemComponent
path: github.com/NVIDIA/.../api/v1alpha1
version: v1alpha1
webhooks:
validation: true
webhookVersion: v1
- api:
crdVersion: v1
controller: true
domain: cluster.x-k8s.io
group: addons
kind: SystemPackage
path: github.com/NVIDIA/.../api/v1alpha1
version: v1alpha1
version: "3"Other versions
No response
Extra Labels
No response
Source: kubernetes-sigs/kubebuilder