Skip to content

charts: fix three templates that fail to render when their value is set - #1036

Draft
marcleblanc2 wants to merge 1 commit into
marc/dedupe-labelsfrom
marc/fix-broken-templates
Draft

marcleblanc2 wants to merge 1 commit into
marc/dedupe-labelsfrom
marc/fix-broken-templates

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Three templates fail to render as soon as a customer sets their value. These are the first three rows of the Problem table in #1034:

  • jaeger.serviceAccount.create: true fails with index of nil pointer: jaeger.ServiceAccount.yaml looks up values under "tracing", which is not a values key
  • openTelemetry.agent.env renders invalid YAML: each list item is indented under env: by 2 extra spaces, so value: lands outside its item
  • privateDockerRegistry.serviceAnnotations in the dind executor chart renders invalid YAML: annotations: is indented 4 spaces under metadata: instead of 2

Stacked on #1035. With both, the kustomize render check from #1034 passes.

Solution

  • jaeger.ServiceAccount.yaml uses "jaeger", as the jaeger Deployment already does, so the ServiceAccount's name matches the serviceAccountName the Deployment references. The app.kubernetes.io/component: tracing label is unchanged.
  • otel-agent.DaemonSet.yaml indents env items like the otel-collector Deployment does.
  • private-docker-registry.Service.yaml indents annotations: by 2 spaces.

Checklist

Test plan

  • scripts/ci/kustomize-render.sh passes all 17 values files: helm template, kubeconform -strict, the Go template output grep, and kubectl kustomize.
  • Rendered output with allValues: the jaeger ServiceAccount is named example-jaeger with its annotations, matching the Deployment's serviceAccountName. The otel-agent env is a list of name/value items. The registry Service has its annotations under metadata.
  • Checked charts: render each label and pod annotation key once #1035 on the allValues files: rendered this PR and ci: render charts with exhaustive test values through kubeconform and kustomize #1034 with only these three fixes applied, parsed both with duplicate keys resolved last-wins, and compared them. Identical for every file and every chart's defaults.
  • helm unittest (281 tests) and scripts/ci/lint.sh pass, and ./scripts/helm-docs.sh changes nothing.

Linked PRs

Amp threads

- jaeger.serviceAccount.create: true failed with a nil pointer, because
  jaeger.ServiceAccount.yaml looked up values under "tracing", which is
  not a values key. Use "jaeger", as the jaeger Deployment does.
- openTelemetry.agent.env indented each list item under env, so value:
  landed outside its item and the YAML was invalid.
- privateDockerRegistry.serviceAnnotations indented annotations: under
  metadata by 4 spaces instead of 2, which made the YAML invalid.

The kustomize render check's allValues files now render.

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a2140d-bf64-751f-9812-0c8757baf6fd
@marcleblanc2
marcleblanc2 added this pull request to stack #1037 November 25, 2026 21:44
@github-actions

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

1 participant