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
_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 }}
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
_helpers.tpl
extra-resources.yaml