Skip to content

Commit

Permalink
add schema back
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkounz committed May 22, 2023
1 parent 7cb896d commit d83e361
Show file tree
Hide file tree
Showing 3 changed files with 337 additions and 2 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.17
version: 0.1.18
keywords:
- graphprotocol
- ethereum
Expand Down
2 changes: 1 addition & 1 deletion charts/graphprotocol-node/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
value: {{ .Values.blockIngestorNodeId | quote }}
- name: GRAPH_LOG
value: {{ .Values.logLevel | quote }}
{{- else }}
{{- else -}}
- name: node_id
valueFrom:
fieldRef:
Expand Down
335 changes: 335 additions & 0 deletions charts/graphprotocol-node/values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,335 @@
{
"$schema": "https://json-schema.org/draft-07/schema#",
"title": "Values",
"type": "object",
"required": [
"image",
"imagePullSecrets",
"nameOverride",
"fullnameOverride",
"podSecurityContext",
"securityContext",
"service",
"resources",
"nodeSelector",
"tolerations",
"affinity",
"config",
"postgres",
"blockIngestorNodeId",
"role",
"monitoring",
"ingress",
"ingressWebsocket",
"logLevel",
"env"
],
"properties": {
"image": {
"description": "Container Image",
"required": [
"repository",
"tag",
"pullPolicy"
],
"properties": {
"repository": {
"type": "string"
},
"tag": {
"type": "string"
},
"pullPolicy": {
"type": "string",
"enum": [
"Always",
"IfNotPresent",
"Never"
]
}
},
"type": "object"
},
"imagePullSecrets": {
"type": "array"
},
"nameOverride": {
"type": "string"
},
"fullnameOverride": {
"type": "string"
},
"podSecurityContext": {
"type": "object"
},
"securityContext": {
"type": "object"
},
"logLevel": {
"type": "string"
},
"service": {
"type": "object",
"required": [
"annotations",
"type",
"metricsPort",
"jsonRpcPort",
"graphqlPort",
"graphqlWsPort",
"indexPort"
],
"properties": {
"annotations": {
"type": "object"
},
"type": {
"type": "string",
"enum": [
"ClusterIP",
"ExternalName",
"LoadBalancer",
"NodePort"
]
},
"metricsPort": {
"type": "integer"
},
"jsonRpcPort": {
"type": "integer"
},
"graphqlPort": {
"type": "integer"
},
"graphqlWsPort": {
"type": "integer"
},
"indexPort": {
"type": "integer"
}
}
},
"resources": {
"type": "object"
},
"nodeSelector": {
"type": "object"
},
"tolerations": {
"type": "array"
},
"affinity": {
"type": "object"
},
"config": {
"description": "Graph indexer agent config options",
"type": "object",
"required": [
"ipfs",
"chains"
],
"properties": {
"ipfs": {
"type": "string",
"description": "IPFS storage endpoint"
},
"chains": {
"type": "object",
"description": "Definition of network providers for different blockchain networks"
}
}
},
"postgres": {
"description": "Postgres DB configuration",
"type": "object",
"required": [
"db",
"host",
"user",
"password"
],
"properties": {
"db": {
"type": "string",
"description": "database name"
},
"host": {
"type": "string",
"description": "host"
},
"replicaHost": {
"type": "string",
"description": "replica host"
},
"user": {
"type": "string",
"description": "user"
},
"password": {
"type": "object",
"description": "password",
"properties": {
"fromSecret": {
"type": "object",
"required": [
"key",
"name"
],
"properties": {
"key": {
"type": "string",
"description": "key containing postgres password in secret"
},
"name": {
"type": "string",
"description": "name of secret containing postgres password"
}
}
},
"value": {
"type": "string",
"description": "postgres password"
}
}
}
}
},
"blockIngestorNodeId": {
"type": "string",
"description": "graphprotocol ingest node id"
},
"role": {
"type": "string",
"description": "role of the deployed graphprotocol node",
"enum": [
"query-node",
"index-node"
]
},
"monitoring": {
"type": "object",
"required": [
"enabled",
"labels"
],
"enabled": {
"type": "boolean",
"description": "enabled ServiceMonitor object creation"
},
"labels": {
"type": "string",
"description": "specify the service.monitor label value."
}
}
},
"ingress": {
"type": "object",
"required": [
"enabled",
"annotations",
"hosts",
"tls"
],
"properties": {
"enabled": {
"type": "boolean"
},
"annotations": {
"type": "object"
},
"hosts": {
"type": "array"
},
"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": {
"type": "object",
"required": [
"enabled",
"annotations",
"hosts",
"tls"
],
"properties": {
"enabled": {
"type": "boolean"
},
"annotations": {
"type": "object"
},
"hosts": {
"type": "array"
},
"tls": {
"type": "array"
}
}
},
"ingressIndex": {
"type": "object",
"required": [
"enabled",
"annotations",
"hosts",
"tls"
],
"properties": {
"enabled": {
"type": "boolean"
},
"annotations": {
"type": "object"
},
"hosts": {
"type": "array"
},
"tls": {
"type": "array"
}
}
},
"ingressWebsocket": {
"type": "object",
"required": [
"enabled",
"annotations",
"hosts",
"tls"
],
"properties": {
"enabled": {
"type": "boolean"
},
"annotations": {
"type": "object"
},
"hosts": {
"type": "array"
},
"tls": {
"type": "array"
}
}
}
}

0 comments on commit d83e361

Please sign in to comment.