github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/pkg/scanners/helm/test/mysql/templates/secrets.yaml (about) 1 {{- if eq (include "mysql.createSecret" .) "true" }} 2 apiVersion: v1 3 kind: Secret 4 metadata: 5 name: {{ include "common.names.fullname" . }} 6 namespace: {{ .Release.Namespace }} 7 labels: {{- include "common.labels.standard" . | nindent 4 }} 8 {{- if .Values.commonLabels }} 9 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 10 {{- end }} 11 {{- if .Values.commonAnnotations }} 12 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 13 {{- end }} 14 type: Opaque 15 data: 16 mysql-root-password: {{ include "mysql.root.password" . | b64enc | quote }} 17 mysql-password: {{ include "mysql.password" . | b64enc | quote }} 18 {{- if eq .Values.architecture "replication" }} 19 mysql-replication-password: {{ include "mysql.replication.password" . | b64enc | quote }} 20 {{- end }} 21 {{- end }}