diff --git a/charts/graphprotocol-node/Chart.yaml b/charts/graphprotocol-node/Chart.yaml index 370ac77..c329b20 100644 --- a/charts/graphprotocol-node/Chart.yaml +++ b/charts/graphprotocol-node/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: graphprotocol-node description: A Helm chart for Graph Protocol Nodes type: application -version: 0.1.13 +version: 0.1.14 keywords: - graphprotocol - ethereum diff --git a/charts/graphprotocol-node/templates/deployment.yaml b/charts/graphprotocol-node/templates/deployment.yaml index efaf0f6..fb67ecf 100644 --- a/charts/graphprotocol-node/templates/deployment.yaml +++ b/charts/graphprotocol-node/templates/deployment.yaml @@ -88,6 +88,10 @@ spec: name: {{ include "graphprotocol-node.fullname" . }} key: pgPass {{- end }} + - name: GRAPH_GRAPHQL_MAX_FIRST + value: "{{ .Values.env.GRAPH_GRAPHQL_MAX_FIRST | default "1000" }}" + - name: ethereum + value: "{{ .Values.env.ethereum | default "" }}" ports: - name: metrics containerPort: 8040 diff --git a/charts/graphprotocol-node/values.schema.json b/charts/graphprotocol-node/values.schema.json index f25798d..fd30fc8 100644 --- a/charts/graphprotocol-node/values.schema.json +++ b/charts/graphprotocol-node/values.schema.json @@ -21,7 +21,8 @@ "monitoring", "ingress", "ingressWebsocket", - "logLevel" + "logLevel", + "env" ], "properties": { "image": { @@ -242,6 +243,24 @@ "tls": { "type": "array" } + }, + "env": { + "description": "Environment variables to add to the containers", + "type": "object", + "required": [ + "GRAPH_GRAPHQL_MAX_FIRST", + "ethereum" + ], + "properties": { + "GRAPH_GRAPHQL_MAX_FIRST": { + "type": "string", + "description": "GRAPH_GRAPHQL_MAX_FIRST" + }, + "ethereum": { + "type": "string", + "description": "Ethereum variable" + } + } } }, "ingressRpc": { diff --git a/charts/graphprotocol-node/values.yaml b/charts/graphprotocol-node/values.yaml index 40f6f3c..fdd4353 100644 --- a/charts/graphprotocol-node/values.yaml +++ b/charts/graphprotocol-node/values.yaml @@ -135,4 +135,9 @@ ingressWebsocket: # - chart-example.local # error, info, or debug -logLevel: error \ No newline at end of file +logLevel: error + +# Environment variables to be passed to the containers +env: + GRAPH_GRAPHQL_MAX_FIRST: 1000 + ethereum: ""