Skip to content

Commit

Permalink
Pass mysql root password to hotcrp to auto provision db
Browse files Browse the repository at this point in the history
  • Loading branch information
xcompass committed Jun 20, 2024
1 parent 1e522be commit c5b7c22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hotcrp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.1
version: 0.2.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
5 changes: 5 additions & 0 deletions hotcrp/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ spec:
secretKeyRef:
name: {{ include "hotcrp.databaseSecretName" . }}
key: mariadb-password
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "hotcrp.databaseSecretName" . }}
key: mariadb-root-password
{{- if .Values.hotcrp.loginType }}
- name: HOTCRP_LOGIN_TYPE
value: {{ .Values.hotcrp.loginType }}
Expand Down

0 comments on commit c5b7c22

Please sign in to comment.