Skip to content

Helm: Evaluate some Helm values as templates with the tpl function #2971

Open
@sboschman

Description

@sboschman

Request

Customizing the pod spec with annotations (.Values.controller.podAnnotations), labels (.Values.controller.podLabels), init containers (.Values.controller.initContainers) or sidecar containers (.Values.controller.extraContainers) would benefit from having these (string) values being evaluated as templates with the Helm tpl function (docs). For example in the same ways as is done with .Values.ingress.tls (here) or with .Values.extraObjects (here).

Use case

This allows the re-use of values defined elsewhere in the values.yaml, instead of having to hardcode them multiple times and use Helm/sprig functions to dynamically generate f.e. annotations or labels.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions