{{- if (include "minio.createSecret" .) }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ include "minio.fullname" . }}
  namespace: {{ .Release.Namespace }}
  labels: {{- include "minio.labels" . | nindent 4 }}
type: Opaque
data:
  access-key: {{ include "minio.accessKey" . | b64enc | quote }}
  secret-key: {{ include "minio.secretKey" . | b64enc | quote }}
{{- end }}
