From df40e6dc8aca7fe2f6d60ff244b569e3c466c5b2 Mon Sep 17 00:00:00 2001 From: coutug Date: Wed, 31 Jul 2024 11:06:27 -0400 Subject: [PATCH] take out env cm for sink-backfill --- charts/substreams-sink-sql-backfill/Chart.yaml | 2 +- .../substreams-sink-sql-backfill/templates/env.yaml | 12 ------------ .../substreams-sink-sql-backfill/templates/job.yaml | 8 +++++--- 3 files changed, 6 insertions(+), 16 deletions(-) delete mode 100644 charts/substreams-sink-sql-backfill/templates/env.yaml diff --git a/charts/substreams-sink-sql-backfill/Chart.yaml b/charts/substreams-sink-sql-backfill/Chart.yaml index 193091e..150610f 100644 --- a/charts/substreams-sink-sql-backfill/Chart.yaml +++ b/charts/substreams-sink-sql-backfill/Chart.yaml @@ -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.0.9 +version: 0.0.10 # 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 diff --git a/charts/substreams-sink-sql-backfill/templates/env.yaml b/charts/substreams-sink-sql-backfill/templates/env.yaml deleted file mode 100644 index f50643b..0000000 --- a/charts/substreams-sink-sql-backfill/templates/env.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: env-{{ .Release.Name }} - labels: - {{- include "substreams-sink-sql-backfill.labels" . | nindent 4 }} -data: - {{- range $key, $val := .Values.env }} - {{- if $val }} - {{ $key | upper }}: {{ $val | quote }} - {{- end }} - {{- end }} \ No newline at end of file diff --git a/charts/substreams-sink-sql-backfill/templates/job.yaml b/charts/substreams-sink-sql-backfill/templates/job.yaml index e4b4566..422d8ac 100644 --- a/charts/substreams-sink-sql-backfill/templates/job.yaml +++ b/charts/substreams-sink-sql-backfill/templates/job.yaml @@ -20,6 +20,7 @@ metadata: labels: {{- include "substreams-sink-sql-backfill.labels" $ | nindent 4 }} spec: + ttlSecondsAfterFinished: 60 template: metadata: labels: @@ -79,6 +80,10 @@ spec: touch /tmp/run-backfill env: + {{- range $key, $val := $values.env }} + - name: {{ $key | upper }} + value: {{ $val | quote }} + {{- end }} - name: SINK_SQL_RUN_CURSORS_TABLE value: {{ $values.tablePrefix }}_{{ $currentBlock }} - name: USERNAME @@ -91,9 +96,6 @@ spec: secretKeyRef: name: {{ $values.clickhouseAuth.secretName }} key: {{ $values.clickhouseAuth.keyPassword }} - envFrom: - - configMapRef: - name: env-{{ $.Release.Name }} volumeMounts: - name: jobs-sync mountPath: /tmp