{{<- if not (tmpl.Exec "kubeflow_pipelines.use_embedded_mysql" .) >}}
{{<- if not .Values.kubeflow_tools.pipelines.mysql.auth.existingSecret >}}
apiVersion: v1
kind: Secret
metadata:
  name: pipelines-mysql-secret
  namespace: kubeflow
data:
  username: {{< .Values.kubeflow_tools.pipelines.mysql.auth.username | base64.Encode | quote >}}
  password: {{< .Values.kubeflow_tools.pipelines.mysql.auth.password | base64.Encode | quote >}}
{{<- end >}}
{{<- end >}}