mirror of
https://github.com/bitnami/charts.git
synced 2026-02-27 06:48:01 +08:00
[bitnami/redmine] fix port number setting for postgresql (#7236)
This commit is contained in:
@@ -36,4 +36,4 @@ name: redmine
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-redmine
|
||||
- http://www.redmine.org/
|
||||
version: 17.0.2
|
||||
version: 17.0.3
|
||||
|
||||
@@ -57,8 +57,12 @@ You have 4 alternatives:
|
||||
echo Username: $REDMINE_USERNAME
|
||||
echo Password: $REDMINE_PASSWORD
|
||||
|
||||
You can access the DB using the following password:
|
||||
{{ include "common.utils.secret.getvalue" (dict "secret" $dbSecretName "field" "mariadb-password" "context" $) }}
|
||||
You can access the DB using the following password:
|
||||
{{- if eq .Values.databaseType "mariadb" }}
|
||||
{{ include "common.utils.secret.getvalue" (dict "secret" $dbSecretName "field" "mariadb-password" "context" $) }}
|
||||
{{- else if eq .Values.databaseType "postgresql" }}
|
||||
{{ include "common.utils.secret.getvalue" (dict "secret" $dbSecretName "field" "postgresql-password" "context" $) }}
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
|
||||
{{- include "common.warnings.rollingTag" .Values.image }}
|
||||
|
||||
@@ -105,6 +105,19 @@ Return the database host for Redmine
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the database port for Redmine
|
||||
*/}}
|
||||
{{- define "redmine.database.port" -}}
|
||||
{{- if and (eq .Values.databaseType "mariadb") (.Values.mariadb.enabled) -}}
|
||||
{{- printf "3306" -}}
|
||||
{{- else if and (eq .Values.databaseType "postgresql") (.Values.postgresql.enabled) -}}
|
||||
{{- printf "5432" -}}
|
||||
{{- else }}
|
||||
{{- .Values.externalDatabase.port }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the database name for Redmine
|
||||
*/}}
|
||||
|
||||
@@ -121,10 +121,8 @@ spec:
|
||||
{{- else }}
|
||||
key: postgresql-password
|
||||
{{- end }}
|
||||
{{- if (include "redmine.useExternalDB" .) }}
|
||||
- name: REDMINE_DATABASE_PORT_NUMBER
|
||||
value: {{ .Values.externalDatabase.port | quote }}
|
||||
{{- end }}
|
||||
value: {{ include "redmine.database.port" . | quote }}
|
||||
- name: REDMINE_USERNAME
|
||||
value: {{ default "" .Values.redmineUsername | quote }}
|
||||
- name: REDMINE_PASSWORD
|
||||
|
||||
Reference in New Issue
Block a user