secrets.yaml 736 B

1234567891011121314151617181920
  1. {{- /*
  2. Copyright VMware, Inc.
  3. SPDX-License-Identifier: APACHE-2.0
  4. */}}
  5. {{- if (include "minio.createSecret" .) }}
  6. apiVersion: v1
  7. kind: Secret
  8. metadata:
  9. name: {{ include "common.names.fullname" . }}
  10. namespace: {{ include "common.names.namespace" . | quote }}
  11. labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
  12. {{- if .Values.commonAnnotations }}
  13. annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
  14. {{- end }}
  15. type: Opaque
  16. data:
  17. root-user: {{ include "minio.secret.userValue" . | b64enc | quote }}
  18. root-password: {{ include "minio.secret.passwordValue" . | b64enc | quote }}
  19. {{- end }}