Skip to content

Commit

Permalink
feat: allow to configure from email (#58)
Browse files Browse the repository at this point in the history
* feat: allow to configure from email

* Updating helm-chart versions and README files

---------

Co-authored-by: testkube-cloud-ci-bot <testkube-cloud-ci-bot@users.noreply.github.com>
  • Loading branch information
exu and testkube-cloud-ci-bot authored Nov 10, 2023
1 parent 296ae17 commit 598fe70
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/testkube-cloud-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ A Helm chart for Testkube Cloud API
| api.agent.port | string | `"443"` | Agent port |
| api.apiAddress | string | `""` | API address (used in invitation emails) (example `https://api.testkube.xyz`) |
| api.dashboardAddress | string | `""` | Dashboard address (used in invitation emails) (example `https://cloud.testkube.xyz`) |
| api.email.fromEmail | string | `"noreply@kubeshop.io"` | |
| api.email.fromName | string | `"Testkube Cloud"` | |
| api.inviteMode | string | `"email"` | Configure which invitation mode to use (email|auto-accept): email uses SMTP protocol to send email invites and auto-accept immediately adds them |
| api.migrations.enabled | bool | `false` | Toggle whether to apply migrations for MongoDB |
| api.migrations.useHelmHooks | bool | `true` | Toggle whether to enable pre-install & pre-upgrade hooks |
Expand Down
4 changes: 4 additions & 0 deletions charts/testkube-cloud-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ spec:
value: {{ .Values.api.smtp.password }}
{{- end }}
{{- end }}
- name: FROM_EMAIL
value: "{{ .Values.api.email.fromEmail }}"
- name: FROM_NAME
value: "{{ .Values.api.email.fromName }}"
- name: ROOT_DOMAIN
value: "{{ .Values.global.domain }}"
- name: METRICS_LISTEN_ADDR
Expand Down
3 changes: 3 additions & 0 deletions charts/testkube-cloud-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ api:
useHelmHooks: true
# -- Configure which invitation mode to use (email|auto-accept): email uses SMTP protocol to send email invites and auto-accept immediately adds them
inviteMode: email
email:
fromEmail: "noreply@kubeshop.io"
fromName: "Testkube Cloud"
smtp:
# -- SMTP host
host: smtp.sendgrid.net
Expand Down

0 comments on commit 598fe70

Please sign in to comment.