Skip to content

Allow including extra resources #271

@aqeelat

Description

@aqeelat

Description
While deploying with helm, it would be ideal if we can include the secret as an extra object so that it can inherit the tracking annotations. This is also really helpful when using argocd.

values.yaml

extraResources: []

_helpers.tpl

{{- define "chart.render" -}}
  {{- if typeIs "string" .value }}
    {{- tpl .value .context }}
  {{- else }}
    {{- tpl (.value | toYaml) .context }}
  {{- end }}
{{- end -}}

extra-resources.yaml

{{- range .Values.extraResources }}
---
{{- include "chart.render" (dict "value" . "context" $) }}
{{- end }}

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