[stable/redmine] add user defined env to redmine deployment (#2111)

* add user defined env to redmine deployment

* update readme

* address PR comments
This commit is contained in:
Philip Champon
2017-09-30 23:54:02 -04:00
committed by Vic Iglesias
parent 30e93e8b11
commit 6e37e693fc
4 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: redmine
version: 1.2.6
version: 1.2.7
appVersion: 3.4.2
description: A flexible project management web application.
keywords:
+1
View File
@@ -61,6 +61,7 @@ The following tables lists the configurable parameters of the Redmine chart and
| `redminePassword` | Application password | _random 10 character long alphanumeric string_ |
| `redmineEmail` | Admin email | `user@example.com` |
| `redmineLanguage` | Redmine default data language | `en` |
| `extraVars` | Environment variables, passed to redmine | `nil` |
| `smtpHost` | SMTP host | `nil` |
| `smtpPort` | SMTP port | `nil` |
| `smtpUser` | SMTP user | `nil` |
+6 -3
View File
@@ -19,7 +19,10 @@ spec:
image: "{{ .Values.image }}"
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
env:
{{ if .Values.databaseType.postgresql }}
{{- if .Values.extraVars }}
{{ toYaml .Values.extraVars | indent 8 }}
{{- end }}
{{- if .Values.databaseType.postgresql }}
- name: REDMINE_DB_POSTGRES
value: {{ template "postgresql.fullname" . }}
- name: REDMINE_DB_PASSWORD
@@ -27,7 +30,7 @@ spec:
secretKeyRef:
name: {{ template "postgresql.fullname" . }}
key: postgres-password
{{ else }}
{{- else }}
- name: REDMINE_DB_MYSQL
value: {{ template "mariadb.fullname" . }}
- name: REDMINE_DB_PASSWORD
@@ -35,7 +38,7 @@ spec:
secretKeyRef:
name: {{ template "mariadb.fullname" . }}
key: mariadb-root-password
{{ end }}
{{- end }}
- name: REDMINE_USERNAME
value: {{ default "" .Values.redmineUsername | quote }}
- name: REDMINE_PASSWORD
+6
View File
@@ -38,6 +38,12 @@ redmineLanguage: en
# smtpPassword:
# smtpTls:
## Environment variables, to pass to the entry point
##
# extraVars:
# - name: NAMI_DEBUG
# value: --log-level trace
## Database configuration. Please note that only one of the following databases should be selected.
## ref: https://github.com/bitnami/bitnami-docker-redmine#run-the-application-using-postgresql-database
##