diff --git a/charts/substreams-sink-sql-backfill/Chart.yaml b/charts/substreams-sink-sql-backfill/Chart.yaml index 5e53a36..35412b4 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.1.7 +version: 0.1.8 # 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/workflow.yaml b/charts/substreams-sink-sql-backfill/templates/workflow.yaml index 5b7825f..47ac261 100644 --- a/charts/substreams-sink-sql-backfill/templates/workflow.yaml +++ b/charts/substreams-sink-sql-backfill/templates/workflow.yaml @@ -128,7 +128,7 @@ spec: name: {{ .Values.clickhouseAuth.secretName }} key: {{ .Values.clickhouseAuth.keyPassword }} command: ["/bin/sh", "-c"] - args: + args: - | {{ "{{inputs.parameters.script}}" }} @@ -162,6 +162,6 @@ spec: name: {{ .Values.clickhouseAuth.secretName }} key: {{ .Values.clickhouseAuth.keyPassword }} command: ["/bin/sh", "-c"] - args: + args: - | - ./substreams-sink-sql run clickhouse://$(USERNAME):$(PASSWORD)@{{ .Values.host }}:9000/{{ .Values.database }} {{ .Values.manifest }} {{ "{{inputs.parameters.start}}" }}:{{ "{{inputs.parameters.stop}}" }} --endpoint={{ .Values.endpoint }} + ./substreams-sink-sql run clickhouse://$(USERNAME):$(PASSWORD)@{{ .Values.host }}:9000/{{ .Values.database }} {{ .Values.manifest }} {{ "{{inputs.parameters.start}}" }}:{{ "{{inputs.parameters.stop}}" }} --endpoint={{ .Values.endpoint }} {{ if .Values.additionalHeaders }}{{- range .Values.additionalHeaders }}-H {{ . | quote }} {{- end }}{{ end }} diff --git a/charts/substreams-sink-sql-backfill/values.yaml b/charts/substreams-sink-sql-backfill/values.yaml index c72b24c..20db2ee 100644 --- a/charts/substreams-sink-sql-backfill/values.yaml +++ b/charts/substreams-sink-sql-backfill/values.yaml @@ -53,8 +53,8 @@ containerResources: # Block ranges to run. Will run as many jobs as it can based on resources available. Once the resource limit is hit, the jobs left will be put in queue blockRanges: - # range of blocks - - range: [0, 10] + # range of blocks + - range: [ 0, 10 ] # blocks per job to run for that range blocksPerJob: 5 @@ -72,6 +72,8 @@ database: myDatabase # Prefix to add to cursor tables being created and deleted by the backfill jobs # By default: backprocess- tablePrefix: backprocess +# Optionally pass one or multiple headers to the Substreams endpoint (such as X-Sf-Substreams-Parallel-Jobs for example) +additionalHeaders: [ ] # Username/Password to connect to database from an existing secret clickhouseAuth: