xray-docs/helm/charts/helm-library/templates/components/_extra_templates.yaml

17 lines
449 B
YAML
Raw Permalink Normal View History

2025-01-18 10:59:15 +00:00
{{- define "lib.component.templates" }} {{- /* define[0] */}}
{{- include "lib.error.noCtx" . -}}
{{-
$labels := include "lib.metadata.mergeLabels"
(dict
"ctx" .ctx
"global" ((.ctx.Values).metadata).labels
)
}}
{{- with (.ctx.Values.extra).templates }} {{- /* with[1] */}}
{{- range . }} {{- /* range[2] */}}
---
{{- tpl . $.ctx | indent 0 }}
{{- end }} {{- /* /range[2] */}}
{{- end }} {{- /* /with[1] */}}
{{- end }} {{- /* /define[0] */}}