Skip to content

Commit

Permalink
Provide hook into admin user seed configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Jul 6, 2023
1 parent e286c75 commit 7b33a74
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/openproject/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ stringData:
{{- else }}
DATABASE_URL: "postgresql://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password }}@{{ .Values.postgresql.connection.host }}:{{ .Values.postgresql.connection.port }}/{{ .Values.postgresql.auth.database }}"
{{- end }}
OPENPROJECT_SEED_ADMIN_USER_PASSWORD: {{ .Values.openproject.admin_user.password | quote }}
OPENPROJECT_SEED_ADMIN_USER_PASSWORD_RESET: {{ .Values.openproject.admin_user.password_reset | quote }}
OPENPROJECT_SEED_ADMIN_USER_NAME: {{ .Values.openproject.admin_user.name | quote }}
OPENPROJECT_SEED_ADMIN_USER_MAIL: {{ .Values.openproject.admin_user.mail | quote }}
OPENPROJECT_HTTPS: {{ .Values.openproject.https | quote }}
OPENPROJECT_SEED_LOCALE: {{ .Values.openproject.seed_locale | quote }}
OPENPROJECT_HOST__NAME: {{ .Values.openproject.host | default .Values.ingress.host | quote }}
Expand Down
9 changes: 9 additions & 0 deletions charts/openproject/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,15 @@ openproject:
#
seed_locale: "en"

## Define admin user details
# only applicable on first installation
# Note: Only applicable for versions >= 13.0
admin_user:
password: 'admin'
password_reset: 'true'
name: 'OpenProject Admin'
mail: '[email protected]'

## Define OpenID Connect providers
oidc:
enabled: false
Expand Down

0 comments on commit 7b33a74

Please sign in to comment.