github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/pkg/scanners/helm/test/mysql/templates/primary/initialization-configmap.yaml (about)

     1  {{- if and .Values.initdbScripts (not .Values.initdbScriptsConfigMap) }}
     2  apiVersion: v1
     3  kind: ConfigMap
     4  metadata:
     5    name: {{ printf "%s-init-scripts" (include "mysql.primary.fullname" .) }}
     6    namespace: {{ .Release.Namespace }}
     7    labels: {{- include "common.labels.standard" . | nindent 4 }}
     8      app.kubernetes.io/component: primary
     9    {{- if .Values.commonAnnotations }}
    10    annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
    11    {{- end }}
    12  data:
    13  {{- include "common.tplvalues.render" (dict "value" .Values.initdbScripts "context" .) | nindent 2 }}
    14  {{ end }}