Skip to content

extraContainers entries cannot reference other values #1005

Description

@ahmedgabers

extraContainers is rendered with plain toYaml, so entries are treated as opaque container specs. That makes it impossible to compose an entry's image from other values — for example a registry/mirror prefix or a CI-injected tag shared with the chart's first-class image fields. Today the only option is hardcoding a full image string per environment, which drifts from the rest of the chart's image configuration.

Many charts render their extra-container passthroughs through tpl so entries may carry template expressions, e.g.:

extraContainers:
  - name: log-shipper
    image: "{{ .Values.someRepository }}:{{ .Values.someTag }}"

Proposed fix in #1003 — a one-line change (tpl (toYaml .Values.extraContainers) .); plain specs render byte-identical.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions