Skip to content

Dry on Dry #2

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.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions