_cert.tpl 621 B

12345678910111213141516171819202122232425
  1. {{/*
  2. Formats volumeMount for Minio tls keys and trusted certs
  3. */}}
  4. {{- define "minio.tlsKeysVolumeMount" -}}
  5. {{- if eq (include "minio.certAvailable" .) "true" -}}
  6. - name: cert-secret-volume
  7. mountPath: "/etc/minio/certs"
  8. {{- end }}
  9. {{- end -}}
  10. {{/*
  11. Formats volume for Minio tls keys and trusted certs
  12. */}}
  13. {{- define "minio.tlsKeysVolume" -}}
  14. {{- if eq (include "minio.certAvailable" .) "true" -}}
  15. - name: cert-secret-volume
  16. secret:
  17. secretName: {{ include "minio.secretName" . }}
  18. items:
  19. - key: certPublicKey
  20. path: public.crt
  21. - key: certPrivateKey
  22. path: private.key
  23. {{- end }}
  24. {{- end -}}