From 4b944ddb8e0c8b1cfeebd73e03346146cb2f5439 Mon Sep 17 00:00:00 2001 From: bodymindarts Date: Wed, 27 Mar 2024 11:46:50 +0100 Subject: [PATCH] chore: remove balance-notification-cronjob --- charts/galoy/templates/_helpers.tpl | 7 -- .../balance-notification-cronjob.yaml | 93 ------------------- charts/galoy/values.yaml | 3 - 3 files changed, 103 deletions(-) delete mode 100644 charts/galoy/templates/balance-notification-cronjob.yaml diff --git a/charts/galoy/templates/_helpers.tpl b/charts/galoy/templates/_helpers.tpl index ca11bb8b65..c2c24c0270 100644 --- a/charts/galoy/templates/_helpers.tpl +++ b/charts/galoy/templates/_helpers.tpl @@ -77,13 +77,6 @@ CronJob name {{- printf "%s-cronjob" .Release.Name -}} {{- end -}} -{{/* -Balance Notification CronJob name -*/}} -{{- define "galoy.balanceNotificationCron.jobname" -}} -{{- printf "%s-balance-notif" .Release.Name -}} -{{- end -}} - {{/* Mongo Backup CronJob name */}} diff --git a/charts/galoy/templates/balance-notification-cronjob.yaml b/charts/galoy/templates/balance-notification-cronjob.yaml deleted file mode 100644 index 3c41afddee..0000000000 --- a/charts/galoy/templates/balance-notification-cronjob.yaml +++ /dev/null @@ -1,93 +0,0 @@ -{{ if .Values.galoy.balanceNotificationCron.enabled }} -apiVersion: batch/v1 -kind: CronJob - -metadata: - name: {{ template "galoy.balanceNotificationCron.jobname" . }} - labels: - app: {{ template "galoy.balanceNotificationCron.jobname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - app.kubernetes.io/managed-by: Helm - -spec: - schedule: 0 14 * * * # Fire everyday at 02:00PM - - jobTemplate: - spec: - activeDeadlineSeconds: 7201 - - template: - metadata: - labels: - spec: - serviceAccountName: {{ template "galoy.name" . }} - restartPolicy: OnFailure - - initContainers: - - name: wait-for-mongodb-migrate - image: "groundnuty/k8s-wait-for:v1.5.1" - args: - - job-wr - - {{ template "galoy.migration.jobname" . }} - - containers: - - name: {{ template "galoy.balanceNotificationCron.jobname" . }} - image: "{{ .Values.galoy.images.app.repository }}@{{ .Values.galoy.images.app.digest }}" - args: - - "-r" - - "/app/lib/services/tracing.js" - - "lib/servers/daily-balance-notification.js" - resources: - {{ toYaml .Values.galoy.balanceNotificationCron.resources | nindent 14 }} - env: - - name: HELMREVISION - value: {{ .Release.Revision | quote }} - - name: LOGLEVEL - value: {{ .Values.galoy.trigger.logLevel | quote }} - - - name: NETWORK - value: {{ .Values.galoy.network }} - - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: {{ .Values.tracing.otelExporterOtlpEndpoint | quote }} - - name: TRACING_SERVICE_NAME - value: "{{ .Values.tracing.prefix }}-{{ template "galoy.balanceNotificationCron.jobname" . }}" - -{{/* Databases */}} -{{ include "galoy.mongodb.env" . | indent 12 }} -{{ include "galoy.redis.env" . | indent 12 }} - -{{/* Bitcoin/LND */}} -{{ include "galoy.lnd1.env" . | indent 12 }} -{{ include "galoy.lnd2.env" . | indent 12 }} - - {{ if .Values.galoy.api.firebaseNotifications.enabled }} - - name: GOOGLE_APPLICATION_CREDENTIALS - value: "/tmp/service-account.json" - {{ end }} - - volumeMounts: - {{ if .Values.galoy.api.firebaseNotifications.enabled }} - - name: firebase-notifications-service-account - mountPath: /tmp - readOnly: true - {{ end }} - - - name: custom-yaml - mountPath: "/var/yaml/" - - volumes: - {{ if .Values.galoy.api.firebaseNotifications.enabled }} - - name: firebase-notifications-service-account - secret: - secretName: {{ .Values.galoy.api.firebaseNotifications.existingSecret.name }} - items: - - key: {{ .Values.galoy.api.firebaseNotifications.existingSecret.key }} - path: service-account.json - {{ end }} - - - name: custom-yaml - secret: - secretName: "{{ template "galoy.config.name" . }}" -{{ end }} diff --git a/charts/galoy/values.yaml b/charts/galoy/values.yaml index 18aaad510b..eef01ec8f6 100644 --- a/charts/galoy/values.yaml +++ b/charts/galoy/values.yaml @@ -454,9 +454,6 @@ galoy: resources: {} galoyCron: resources: {} - balanceNotificationCron: - resources: {} - enabled: false mongoMigrationJob: resources: {} ## Kratos