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