Skip to content

Commit

Permalink
TECH-1637 - Allow setting custom GRAPH_GRAPHQL_MAX_FIRST (#7)
Browse files Browse the repository at this point in the history
* Allow setting custom GRAPH_GRAPHQL_MAX_FIRST

* Properly add GRAPH_GRAPHQL_MAX_FIRST

* fix env var and bump version

* TECH-1635 add ethereum variable

* add ethereum default value

---------

Co-authored-by: Santiago Botto <[email protected]>
Co-authored-by: Nick Kou <[email protected]>
  • Loading branch information
3 people authored May 19, 2023
1 parent 5e3ad77 commit 04e166e
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/graphprotocol-node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions charts/graphprotocol-node/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 20 additions & 1 deletion charts/graphprotocol-node/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"monitoring",
"ingress",
"ingressWebsocket",
"logLevel"
"logLevel",
"env"
],
"properties": {
"image": {
Expand Down Expand Up @@ -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": {
Expand Down
7 changes: 6 additions & 1 deletion charts/graphprotocol-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,9 @@ ingressWebsocket:
# - chart-example.local

# error, info, or debug
logLevel: error
logLevel: error

# Environment variables to be passed to the containers
env:
GRAPH_GRAPHQL_MAX_FIRST: 1000
ethereum: ""

0 comments on commit 04e166e

Please sign in to comment.