Skip to content

Commit ceeaf6d

Browse files
committed
build(repo): Fix dune on helm
1 parent d3a20ac commit ceeaf6d

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

cluster/charts/fuel-streams/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: "1.0"
33
description: A Helm chart for Kubernetes
44
name: fuel-streams
5-
version: 0.11.4
5+
version: 0.11.5
66
dependencies:
77
- name: nats
88
version: 1.3.2

cluster/charts/fuel-streams/templates/dune/cronjob.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{{- $cronjob := $dune.cronjob -}}
33
{{- $name := "dune" -}}
44
{{- $component := "dune" -}}
5+
{{- $pvcName := printf "%s-dune-state" (include "fuel-streams.fullname" .) -}}
56
{{- $serviceDict := dict "root" . "context" $dune "name" $name "component" $component -}}
67
{{- if $dune.enabled -}}
78
apiVersion: batch/v1
@@ -30,11 +31,11 @@ spec:
3031
- "{{ $dune.storage.mountPath }}"
3132
{{- include "k8s.container-config" $serviceDict | nindent 14 }}
3233
volumeMounts:
33-
- name: {{ $dune.storage.name }}
34+
- name: dune-state
3435
mountPath: {{ $dune.storage.mountPath }}
3536
volumes:
36-
- name: {{ $dune.storage.name }}
37+
- name: dune-state
3738
persistentVolumeClaim:
38-
claimName: {{ include "fuel-streams.fullname" . }}-dune-state
39+
claimName: {{ $pvcName }}
3940
restartPolicy: OnFailure
4041
{{- end }}

cluster/charts/fuel-streams/templates/dune/pvc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{- $storage := $dune.storage }}
33
{{- $component := "dune" -}}
44
{{- $pvcName := printf "%s-dune-state" (include "fuel-streams.fullname" .) -}}
5-
{{- $storageDict := dict "root" . "context" $storage "name" "dune-storage" "component" $component -}}
5+
{{- $storageDict := dict "root" . "context" $storage "name" $pvcName "component" $component -}}
66
{{- if $dune.enabled }}
77
apiVersion: v1
88
kind: PersistentVolumeClaim

cluster/charts/fuel-streams/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,6 @@ dune:
420420
tag: latest
421421

422422
storage:
423-
name: dune-state
424423
size: 10Mi # Small size since we only store block height state
425424
storageClass: "gp3-generic"
426425
accessMode: ReadWriteOnce

crates/domains/migrations/20250108203444_create_transactions_table.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ CREATE INDEX IF NOT EXISTS idx_transactions_is_upgrade ON transactions (is_upgra
100100
CREATE INDEX IF NOT EXISTS idx_transactions_is_upload ON transactions (is_upload);
101101
CREATE INDEX IF NOT EXISTS idx_transactions_inputs_count ON transactions (inputs_count);
102102
CREATE INDEX IF NOT EXISTS idx_transactions_outputs_count ON transactions (outputs_count);
103-
CREATE INDEX IF NOT EXISTS idx_transactions_script ON transactions (script);
104103
CREATE INDEX IF NOT EXISTS idx_transactions_block_time ON transactions (block_time);
105104
CREATE INDEX IF NOT EXISTS idx_transactions_created_at ON transactions (created_at);
106105

@@ -256,7 +255,6 @@ CREATE TABLE "transaction_proof_set" (
256255
);
257256

258257
CREATE INDEX IF NOT EXISTS idx_transaction_proof_set_tx_id ON transaction_proof_set (tx_id);
259-
CREATE INDEX IF NOT EXISTS idx_transaction_proof_set_proof_hash ON transaction_proof_set (proof_hash);
260258
CREATE INDEX IF NOT EXISTS idx_transaction_proof_set_block_height ON transaction_proof_set (block_height);
261259
CREATE INDEX IF NOT EXISTS idx_transaction_proof_set_block_time ON transaction_proof_set (block_time);
262260
CREATE INDEX IF NOT EXISTS idx_transaction_proof_set_created_at ON transaction_proof_set (created_at);
@@ -283,3 +281,6 @@ CREATE INDEX IF NOT EXISTS idx_transaction_policies_tx_id ON transaction_policie
283281
CREATE INDEX IF NOT EXISTS idx_transaction_policies_block_height ON transaction_policies (block_height);
284282
CREATE INDEX IF NOT EXISTS idx_transaction_policies_block_time ON transaction_policies (block_time);
285283
CREATE INDEX IF NOT EXISTS idx_transaction_policies_created_at ON transaction_policies (created_at);
284+
285+
DROP INDEX IF EXISTS idx_transactions_script;
286+
DROP INDEX IF EXISTS idx_transaction_proof_set_proof_hash;

0 commit comments

Comments
 (0)