Skip to content

Commit

Permalink
Update chart for hotcrp to add admin email and auth support
Browse files Browse the repository at this point in the history
  • Loading branch information
xcompass committed Jan 23, 2024
1 parent ebfb598 commit a72c944
Show file tree
Hide file tree
Showing 3 changed files with 16 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.1.0
version: 0.2.0

# 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
10 changes: 10 additions & 0 deletions hotcrp/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
value: {{ .Values.hotcrp.contactEmail}}
- name: HOTCRP_EMAIL_FROM
value: {{ .Values.hotcrp.emailFrom}}
- name: HOTCRP_ADMIN_EMAIL
value: {{ .Values.hotcrp.adminEmail }}
- name: HOTCRP_PAPER_SITE
value: {{ .Values.hotcrp.paperSite}}
- name: MYSQL_HOST
Expand All @@ -53,6 +55,14 @@ spec:
secretKeyRef:
name: {{ include "hotcrp.databaseSecretName" . }}
key: mariadb-password
{{- if .Values.hotcrp.loginType }}
- name: HOTCRP_LOGIN_TYPE
value: {{ .Values.hotcrp.loginType }}
{{- end }}
{{- if .Values.hotcrp.oauthProvider }}
- name: HOTCRP_OAUTH_PROVIDER
value: {{ .Values.hotcrp.oauthProvider }}
{{- end }}
ports:
- containerPort: 9000
hostPort: 9000
Expand Down
5 changes: 5 additions & 0 deletions hotcrp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ hotcrp:
contactEmail: [email protected]
emailFrom: [email protected]
paperSite: ""
# the email address for the first admin created automatically
adminEmail: [email protected]
#loginType: oauth
#oauthProvider: |
# '{}'

persistence:
enabled: false
Expand Down

0 comments on commit a72c944

Please sign in to comment.