{{- if and .Values.apiportal.enabled (not .Values.apiportal.mysql.existingSecret) -}} apiVersion: v1 data: username: {{ .Values.apiportal.mysql.username | b64enc }} password: {{ .Values.apiportal.mysql.password | b64enc }} kind: Secret metadata: name: {{ include "gateway.apiportal.secretName" . }} labels: {{- include "gateway.labels" . | nindent 4 }} app.kubernetes.io/component: apiportal {{- end }}