| gio | c916187 | 2024-04-21 10:46:35 +0400 | [diff] [blame] | 1 | --- |
| 2 | apiVersion: "v1" |
| 3 | kind: "Secret" |
| 4 | metadata: |
| 5 | name: "{{ include "common.names.fullname" . }}-core" |
| 6 | labels: |
| 7 | {{- include "common.labels.standard" . | nindent 4 }} |
| 8 | stringData: |
| 9 | {{- if .Values.postgresql.bundled }} |
| 10 | DATABASE_HOST: {{ printf "%s-postgresql.%s.svc.%s" .Release.Name .Release.Namespace .Values.clusterDomain | quote }} |
| 11 | DATABASE_PORT: "{{ .Values.postgresql.primary.service.ports.postgresql }}" |
| 12 | DATABASE_URL: "postgresql://{{ .Values.postgresql.auth.username }}@{{ include "common.names.dependency.fullname" (dict "chartName" "postgresql" "chartValues" .Values.postgresql "context" $) }}:{{ .Values.postgresql.primary.service.ports.postgresql }}/{{ .Values.postgresql.auth.database }}" |
| 13 | {{- else }} |
| 14 | DATABASE_HOST: "{{ .Values.postgresql.connection.host }}" |
| 15 | DATABASE_PORT: "{{ .Values.postgresql.connection.port }}" |
| 16 | DATABASE_URL: "postgresql://{{ .Values.postgresql.auth.username }}@{{ .Values.postgresql.connection.host }}:{{ .Values.postgresql.connection.port }}/{{ .Values.postgresql.auth.database }}" |
| 17 | {{- end }} |
| 18 | OPENPROJECT_SEED_ADMIN_USER_PASSWORD: {{ .Values.openproject.admin_user.password | quote }} |
| 19 | OPENPROJECT_SEED_ADMIN_USER_PASSWORD_RESET: {{ .Values.openproject.admin_user.password_reset | quote }} |
| 20 | OPENPROJECT_SEED_ADMIN_USER_NAME: {{ .Values.openproject.admin_user.name | quote }} |
| 21 | OPENPROJECT_SEED_ADMIN_USER_MAIL: {{ .Values.openproject.admin_user.mail | quote }} |
| 22 | OPENPROJECT_HTTPS: {{ (.Values.develop | ternary "false" .Values.openproject.https) | quote }} |
| 23 | OPENPROJECT_SEED_LOCALE: {{ .Values.openproject.seed_locale | quote }} |
| 24 | {{- if .Values.ingress.enabled }} |
| 25 | OPENPROJECT_HOST__NAME: {{ .Values.openproject.host | default .Values.ingress.host | quote }} |
| 26 | {{- end }} |
| 27 | OPENPROJECT_HSTS: {{ .Values.openproject.hsts | quote }} |
| 28 | OPENPROJECT_RAILS__CACHE__STORE: {{ .Values.openproject.cache.store | quote }} |
| 29 | OPENPROJECT_RAILS__RELATIVE__URL__ROOT: {{ .Values.openproject.railsRelativeUrlRoot | default "" | quote }} |
| 30 | POSTGRES_STATEMENT_TIMEOUT: {{ .Values.openproject.postgresStatementTimeout | quote }} |
| 31 | ... |