{{- if .Values.cloudsqlproxy.enabled }}
apiVersion: v1
kind: Secret
metadata:
  name:  {{ template "prometheus-mysql-exporter.cloudsqlsecret" . }}
type: Opaque
data:
  credentials.json: {{ .Values.cloudsqlproxy.credentials | b64enc }}
{{- end }}
