Skip to content

Commit

Permalink
take out env cm for sink-backfill
Browse files Browse the repository at this point in the history
  • Loading branch information
coutug committed Jul 31, 2024
1 parent e8f1773 commit df40e6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion charts/substreams-sink-sql-backfill/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 0 additions & 12 deletions charts/substreams-sink-sql-backfill/templates/env.yaml

This file was deleted.

8 changes: 5 additions & 3 deletions charts/substreams-sink-sql-backfill/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ metadata:
labels:
{{- include "substreams-sink-sql-backfill.labels" $ | nindent 4 }}
spec:
ttlSecondsAfterFinished: 60
template:
metadata:
labels:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit df40e6d

Please sign in to comment.