github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/pkg/scanners/helm/test/mysql/charts/common/templates/_tplvalues.tpl (about)

     1  {{/* vim: set filetype=mustache: */}}
     2  {{/*
     3  Renders a value that contains template.
     4  Usage:
     5  {{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
     6  */}}
     7  {{- define "common.tplvalues.render" -}}
     8      {{- if typeIs "string" .value }}
     9          {{- tpl .value .context }}
    10      {{- else }}
    11          {{- tpl (.value | toYaml) .context }}
    12      {{- end }}
    13  {{- end -}}