_configuration.tpl 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {{- define "minio.configuration" -}}
  2. {{/* Validation */}}
  3. {{ include "minio.validation" $ }}
  4. {{ $config := fromJson (include "minio.prepare.config" $) }}
  5. {{/* Secrets */}}
  6. secret:
  7. minio-creds:
  8. enabled: true
  9. data:
  10. MINIO_ROOT_USER: {{ .Values.minioCreds.rootUser }}
  11. MINIO_ROOT_PASSWORD: {{ .Values.minioCreds.rootPass }}
  12. MINIO_VOLUMES: {{ $config.volumes }}
  13. {{ with .Values.minioNetwork.serverUrl }}
  14. MINIO_SERVER_URL: {{ . | quote }}
  15. {{ end }}
  16. {{ with .Values.minioNetwork.consoleUrl }}
  17. MINIO_BROWSER_REDIRECT_URL: {{ . | quote }}
  18. {{ end }}
  19. {{ if .Values.minioLogging.logsearch.enabled }}
  20. MINIO_AUDIT_WEBHOOK_ENABLE_ix_logsearch: "on"
  21. MINIO_AUDIT_WEBHOOK_ENDPOINT_ix_logsearch: {{ $config.webhookURL }}
  22. MINIO_LOG_QUERY_AUTH_TOKEN: {{ $config.queryToken }}
  23. MINIO_LOG_QUERY_URL: {{ $config.logQueryURL }}
  24. {{ end }}
  25. # Always create the logsearch and postgres secret, even if logsearch is disabled.
  26. # Because autogenerated passwords are stored in the secret, and disabling logsearch after
  27. # the secret is created will cause the passwords to be lost (if the secret is conditionally rendered).
  28. logsearch-creds:
  29. enabled: true
  30. data:
  31. LOGSEARCH_PG_CONN_STR: {{ $config.postgresURL }}
  32. LOGSEARCH_AUDIT_AUTH_TOKEN: {{ $config.auditToken }}
  33. MINIO_LOG_QUERY_AUTH_TOKEN: {{ $config.queryToken }}
  34. {{ if .Values.minioLogging.logsearch.enabled }}
  35. LOGSEARCH_DISK_CAPACITY_GB: {{ $config.diskCapacity | quote }}
  36. {{ end }}
  37. postgres-creds:
  38. enabled: true
  39. data:
  40. POSTGRES_PASSWORD: {{ $config.dbPass }}
  41. POSTGRES_USER: {{ $config.dbUser }}
  42. POSTGRES_DB: {{ $config.dbName }}
  43. POSTGRES_HOST: {{ $config.dbHost }}
  44. POSTGRES_URL: {{ $config.postgresURL }}
  45. {{/* MinIO Certificate */}}
  46. {{ if .Values.minioNetwork.certificateID }}
  47. scaleCertificate:
  48. minio-cert:
  49. enabled: true
  50. labels: {}
  51. annotations: {}
  52. id: {{ .Values.minioNetwork.certificateID }}
  53. {{ end }}
  54. {{- end -}}