Skip to content

Commit

Permalink
chore(deps): bump-notifications-image-1af8f5d (#5600)
Browse files Browse the repository at this point in the history
* chore(deps): bump 'notifications' image to 'sha256:27887d5291d645b08cba081cc5ea34b77e748025dd6c4bc9795e43632b019872'

* chore(galoy): add smtp config to notifications

---------

Co-authored-by: CI Bot <[email protected]>
Co-authored-by: bodymindarts <[email protected]>
  • Loading branch information
3 people authored Feb 20, 2024
1 parent dbb42c6 commit c3a9001
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
1 change: 1 addition & 0 deletions charts/galoy/templates/galoy-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ metadata:
type: Opaque
data:
pg-con: {{ .Values.secrets.notificationsPgCon | toString | b64enc }}
smtp-password: {{ .Values.secrets.notificationsSmtpPassword | toString | b64enc }}
firebase-service-account: {{ .Values.secrets.firebaseServiceAccountJson | toString | b64enc }}

{{- end -}}
8 changes: 7 additions & 1 deletion charts/galoy/templates/notifications-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ data:
endpoint: {{ .Values.tracing.otelExporterOtlpEndpoint }}
service_name: "{{ .Values.tracing.prefix }}-{{ template "galoy.notifications.fullname" . }}"
app:
executor:
push_executor:
fcm:
google_application_credentials_path: "/tmp/firebase-service-account/service-account.json"
email_executor:
smtp:
username: {{ .Values.galoy.notifications.config.smtp.username }}
from_email: {{ .Values.galoy.notifications.config.smtp.fromEmail }}
relay: {{ .Values.galoy.notifications.config.smtp.relayHost }}
port: {{ .Values.galoy.notifications.config.smtp.relayPort }}
5 changes: 5 additions & 0 deletions charts/galoy/templates/notifications-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ spec:
secretKeyRef:
name: {{ template "galoy.notifications.fullname" . }}
key: pg-con
- name: EMAIL_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "galoy.notifications.fullname" . }}
key: smtp-password
{{ include "galoy.kratos.env" . | indent 8 }}
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: {{ .Values.tracing.otelExporterGrpcEndpoint | quote }}
Expand Down
9 changes: 8 additions & 1 deletion charts/galoy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ galoy:
repository: us.gcr.io/galoy-org/galoy-notifications
## Digest of the image
##
digest: "sha256:cda90b5539fdf8d7ecfe44a04f7ef5053bfaf9c1d685f96dc217202e264921a7" # METADATA:: repository=https://github.com/GaloyMoney/galoy;commit_ref=a24b356;app=notifications;monorepo_subdir=core/notifications;
digest: "sha256:27887d5291d645b08cba081cc5ea34b77e748025dd6c4bc9795e43632b019872" # METADATA:: repository=https://github.com/GaloyMoney/galoy;commit_ref=1af8f5d;app=notifications;monorepo_subdir=core/notifications;
## Galoy Application MongoDB Migration Image details
##
mongodbMigrate:
Expand Down Expand Up @@ -425,6 +425,11 @@ galoy:
grpcPort: 6685
config:
importFromKratos: false
smtp:
username: ""
fromEmail: ""
relayHost: ""
relayPort: 587
consent:
resources: {}
port: 80
Expand Down Expand Up @@ -669,6 +674,8 @@ secrets:
apiKeysPgCon:
## postgres secret for notifications
notificationsPgCon:
## Smtp password for notifications
notificationsSmtpPassword:
## Service account to send firebase noitifications
firebaseServiceAccountJson:
## Tracing details
Expand Down
1 change: 1 addition & 0 deletions ci/testflight/galoy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ resource "kubernetes_secret" "notifications" {
}
data = {
pg-con : "postgres://notifications:notifications@notifications-postgresql:5432/notifications"
smtp-password : "dummy"
firebase-service-account = file("${path.module}/fake-firebase-service-account.json")
}
}
Expand Down

0 comments on commit c3a9001

Please sign in to comment.