Skip to content

fix(chart): drop duplicate app.kubernetes.io/name key from ipman.labels - #32

Merged
plan9better merged 1 commit into
dialohq:masterfrom
m4ci3k2:fix/chart-duplicate-app-name-label
Sep 2, 2026
Merged

fix(chart): drop duplicate app.kubernetes.io/name key from ipman.labels#32
plan9better merged 1 commit into
dialohq:masterfrom
m4ci3k2:fix/chart-duplicate-app-name-label

Conversation

@m4ci3k2

@m4ci3k2 m4ci3k2 commented Sep 1, 2026

Copy link
Copy Markdown

ipman.labels already includes ipman.selectorLabels above, which
unconditionally sets app.kubernetes.io/name. The if .Chart.AppVersion
block then sets the same key again, so every resource using this helper
(deployment.yaml's metadata.labels and spec.template.metadata.labels)
ends up with the key defined twice in one YAML mapping.

Plain helm install/kubectl tolerate this silently (lenient
YAML->JSON decoding, last duplicate wins), but installing via Flux's
helm-controller fails outright, since its post-render step uses a
stricter decoder:

error while running post render on files: ... mapping key
"app.kubernetes.io/name" already defined

ipman.labels already includes ipman.selectorLabels above, which
unconditionally sets app.kubernetes.io/name. The `if .Chart.AppVersion`
block then set the same key again, so every resource using this helper
(deployment.yaml's metadata.labels and spec.template.metadata.labels)
ends up with the key defined twice in one YAML mapping.

Plain `helm install`/kubectl tolerate this silently (lenient
YAML->JSON decoding, last duplicate wins), but installing via Flux's
helm-controller fails outright, since its post-render step uses a
stricter decoder:

  error while running post render on files: ... mapping key
  "app.kubernetes.io/name" already defined

Confirmed present, unconditionally, in every published chart version
0.1.10-0.1.18. Reproduced and fixed while GitOps-ifying a deployment
with Flux.
@plan9better
plan9better merged commit 4542e66 into dialohq:master Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants