From 4da6c78110af5121eb7599d4c15c4fa0d59c6147 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 24 Apr 2024 12:41:30 -0400 Subject: [PATCH] Include arg in deployment (#47) Co-authored-by: roy_fuel <96140895+rfuelsh@users.noreply.github.com> --- helm/fuel-subgraph/templates/deployment.yaml | 3 ++- helm/fuel-subgraph/values.yaml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/helm/fuel-subgraph/templates/deployment.yaml b/helm/fuel-subgraph/templates/deployment.yaml index cf85465..ee8e365 100644 --- a/helm/fuel-subgraph/templates/deployment.yaml +++ b/helm/fuel-subgraph/templates/deployment.yaml @@ -34,9 +34,10 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: [ "./app/start.sh" ] + args: ['{{ .Values.app.chain_id }}'] env: - name: CHAIN_ID - value: "beta-5.fuel.network" + value: {{ .Values.app.chain_id }} ports: - name: http containerPort: {{ .Values.service.port }} diff --git a/helm/fuel-subgraph/values.yaml b/helm/fuel-subgraph/values.yaml index b9e3627..61f9ece 100644 --- a/helm/fuel-subgraph/values.yaml +++ b/helm/fuel-subgraph/values.yaml @@ -91,6 +91,7 @@ tolerations: [] affinity: {} app: + chain_id: example.network volume: storageclass: gp3-generic accessmodes: ReadWriteOnce