Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump-notifications-image-8a2305f #6300

Merged
merged 2 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions charts/galoy/templates/notification-jobs-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "galoy.notifications.fullname" . }}-jobs
labels:
app: {{ template "galoy.notifications.fullname" . }}-jobs
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
app.kubernetes.io/managed-by: Helm
kube-monkey/enabled: enabled
kube-monkey/identifier: {{ template "galoy.notifications.fullname" . }}-jobs
kube-monkey/kill-mode: fixed
kube-monkey/kill-value: "1"
kube-monkey/mtbf: "3"
spec:
replicas: {{ .Values.galoy.notifications.jobs_replicas }}
selector:
matchLabels:
app: {{ template "galoy.notifications.fullname" . }}-jobs
template:
metadata:
name: {{ template "galoy.notifications.fullname" . }}-jobs
labels:
app: {{ template "galoy.notifications.fullname" . }}-jobs
kube-monkey/enabled: enabled
kube-monkey/identifier: {{ template "galoy.notifications.fullname" . }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/notifications-jobs-cm.yaml") . | sha256sum }}
spec:
containers:
- name: notifications
image: "{{ .Values.galoy.images.notifications.repository }}@{{ .Values.galoy.images.notifications.digest }}"
resources:
{{ toYaml .Values.galoy.notifications.jobsResources | nindent 10 }}
env:
- name: PG_CON
valueFrom:
secretKeyRef:
name: {{ template "galoy.notifications.fullname" . }}
key: pg-con
- name: PG_READ_CON
valueFrom:
secretKeyRef:
name: {{ template "galoy.notifications.fullname" . }}
key: pg-read-con
- name: EMAIL_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "galoy.notifications.fullname" . }}
key: smtp-password
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: {{ .Values.tracing.otelExporterGrpcEndpoint | quote }}
- name: NOTIFICATIONS_CONFIG
value: "/notifications.yml"
volumeMounts:
- name: config
mountPath: "/notifications.yml"
subPath: "notifications.yml"
readOnly: true
- name: firebase-notifications-service-account
mountPath: /tmp/firebase-service-account/
readOnly: true
volumes:
- name: config
configMap:
name: {{ template "galoy.notifications.fullname" . }}-jobs
- name: firebase-notifications-service-account
secret:
secretName: {{ template "galoy.notifications.fullname" . }}
items:
- key: firebase-service-account
path: service-account.json
2 changes: 1 addition & 1 deletion charts/galoy/templates/notifications-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ data:
relay: {{ .Values.galoy.notifications.config.smtp.relayHost }}
port: {{ .Values.galoy.notifications.config.smtp.relayPort }}
jobs:
kickoff_link_email_reminder_delay: {{ .Values.galoy.notifications.config.jobs.kickoffLinkEmailReminderDelay }}
enabled: false
link_email_reminder:
account_liveness_threshold_minutes: {{ .Values.galoy.notifications.config.linkEmailReminder.accountLivenessThresholdMinutes }}
account_age_threshold_minutes: {{ .Values.galoy.notifications.config.linkEmailReminder.accountAgeThresholdMinutes }}
Expand Down
26 changes: 26 additions & 0 deletions charts/galoy/templates/notifications-jobs-cm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "galoy.notifications.fullname" . }}-jobs
data:
notifications.yml: |-
db:
pool_size: {{ .Values.galoy.notifications.config.db.poolSize }}
tracing:
endpoint: {{ .Values.tracing.otelExporterOtlpEndpoint }}
service_name: "{{ .Values.tracing.prefix }}-{{ template "galoy.notifications.fullname" . }}-jobs"
app:
push_executor:
fcm:
google_application_credentials_path: "/tmp/firebase-service-account/service-account.json"
email_executor:
enabled: {{ .Values.galoy.notifications.config.smtp.enabled }}
smtp:
username: {{ .Values.galoy.notifications.config.smtp.username }}
from_email: {{ .Values.galoy.notifications.config.smtp.fromEmail }}
from_name: {{ .Values.galoy.notifications.config.smtp.fromName }}
relay: {{ .Values.galoy.notifications.config.smtp.relayHost }}
port: {{ .Values.galoy.notifications.config.smtp.relayPort }}
jobs:
enabled: true
kickoff_link_email_reminder_delay: {{ .Values.galoy.notifications.config.jobs.kickoffLinkEmailReminderDelay }}
4 changes: 3 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:0dfab4a610b9bb52a93844fb34998fabdcc98db52de0c0eb819766844dc36cdb" # METADATA:: repository=https://github.com/GaloyMoney/galoy;commit_ref=8dcce4d;app=notifications;monorepo_subdir=core/notifications;
digest: "sha256:5932be0e7003fbfadca16b29353a9df3618c9d3144b7a177889e0c0a99e62260" # METADATA:: repository=https://github.com/GaloyMoney/galoy;commit_ref=8a2305f;app=notifications;monorepo_subdir=core/notifications;
## Galoy Application MongoDB Migration Image details
##
mongodbMigrate:
Expand Down Expand Up @@ -420,8 +420,10 @@ galoy:
notifications:
nameOverride:
replicas: 2
jobs_replicas: 2
serviceType: ClusterIP
resources: {}
jobsResources: {}
grpcPort: 6685
graphqlPort: 6684
config:
Expand Down
Loading