Skip to content

Dry on Dry #2

@brunohms

Description

@brunohms

I've noticed that in some use cases the following code will be used in multiple files:

{{- $common := dict "Values" .Values.common -}} 
{{- $noCommon := omit .Values "common" -}} 
{{- $overrides := dict "Values" $noCommon -}} 
{{- $noValues := omit . "Values" -}} 
{{- with merge $noValues $overrides $common -}}

In your git repo I can see it in _deployment and almost the same in _ingress

Is it possible to move it to the _helpers.tpl file and reuse it?

Tried doing it using files without any success.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions