Skip to content

Commit

Permalink
chore(indexer): cosmetic changes for indexer-service chart
Browse files Browse the repository at this point in the history
  • Loading branch information
calinah committed Sep 17, 2024
1 parent 4f61328 commit 1dd5ed3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 16 deletions.
2 changes: 1 addition & 1 deletion charts/graph-network-indexer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.0-canary.2
version: 0.5.0-canary.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 4 additions & 2 deletions charts/graph-network-indexer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Deploy and scale the [Graph Network Indexer](https://github.com/graphprotocol/indexer) components inside Kubernetes with ease

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Version: 0.5.0-canary.2](https://img.shields.io/badge/Version-0.5.0--canary.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0-rc.6](https://img.shields.io/badge/AppVersion-1.0.0--rc.6-informational?style=flat-square)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Version: 0.5.0-canary.3](https://img.shields.io/badge/Version-0.5.0--canary.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0-rc.6](https://img.shields.io/badge/AppVersion-1.0.0--rc.6-informational?style=flat-square)

## Introduction

Expand Down Expand Up @@ -122,7 +122,9 @@ We do not recommend that you upgrade the application by overriding `image.tag`.
| indexerAgent.service.type | | string | `"ClusterIP"` |
| indexerAgent.terminationGracePeriodSeconds | Amount of time to wait before force-killing the process | int | `10` |
| indexerAgent.tolerations | | list | `[]` |
| indexerDefaults | Value defaults that apply to both indexer-agent and indexer-service | object | `{"config":{"blockchain":{"chain_id":"valid_blockchain_chain_id","receipts_verifier_address":"valid_blockchain_receipts_verifier_address"},"graph_node":{"query_url":"your_graph_node_query_url","status_url":"your_graph_node_status_endpoint"},"indexer":{"indexer_address":"your_indexer_address"},"service":{"host_and_port":"0.0.0.0:7600"},"subgraphs.escrow":{"syncing_interval_secs":60},"subgraphs.network":{"syncing_interval_secs":60},"tap.rav_request":{"trigger_value_divisor":100}},"env":{},"metrics":{"address":"0.0.0.0","enabled":true,"port":7300},"postgresConfig":{"database":"your_database","host":"localhost","port":5432}}` |
| indexerDefaults | Value defaults that apply to both indexer-agent and indexer-service | object | `{"config":{"blockchain":{"chain_id":"valid_blockchain_chain_id","receipts_verifier_address":"valid_blockchain_receipts_verifier_address"},"graph_node":{"query_url":"your_graph_node_query_url","status_url":"your_graph_node_status_endpoint"},"indexer":{"indexer_address":"your_indexer_address"},"service":{"host_and_port":"0.0.0.0:7600"},"subgraphs.escrow":{"query_url":"http://your-graph-node-query:8000/subgraphs/id/TAP_ESCROW_SUBGRAPH","syncing_interval_secs":60},"subgraphs.network":{"query_url":"http://your-graph-node-query:8000/subgraphs/id/NETWORK_SUBGRAPH","syncing_interval_secs":60},"tap.rav_request":{"trigger_value_divisor":100}},"env":{},"metrics":{"address":"0.0.0.0","enabled":true,"port":7300},"postgresConfig":{"database":"your_database","host":"localhost","port":5432}}` |
| indexerDefaults.config."subgraphs.escrow".query_url | Query URL for the Graph Escrow subgraph. For optimal performance, it's recommended to locally index the subgraph. If locally indexed, use a combination of `deployment_id` and `query_url` pointing to your graph-node-query. If not locally indexed, use the gateway URL. | required | `"http://your-graph-node-query:8000/subgraphs/id/TAP_ESCROW_SUBGRAPH"` |
| indexerDefaults.config."subgraphs.network".query_url | Query URL for the Graph Network subgraph. For optimal performance, it's recommended to locally index the subgraph. If locally indexed, use a combination of `deployment_id` and `query_url` pointing to your graph-node-query. If not locally indexed, use the gateway URL. | required | `"http://your-graph-node-query:8000/subgraphs/id/NETWORK_SUBGRAPH"` |
| indexerDefaults.config.graph_node.query_url | URL for your graph node query endpoint (probably a load balancer address) | required | `"your_graph_node_query_url"` |
| indexerDefaults.config.graph_node.status_url | URL for your graph node status endpoint (probably a load balancer address) | required | `"your_graph_node_status_endpoint"` |
| indexerDefaults.config.indexer.indexer_address | Ethereum address of your Indexer | required | `"your_indexer_address"` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
apiVersion: apps/v1
kind: StatefulSet # StatefulSet is better behaved when trying to maintain a single instance of the indexer-tap-agent. We never want more than one indexer-tap-agent active at a time.
metadata:
name: {{ include "graph-network-indexer.fullname" . }}-{{ $componentName }}-headless
name: {{ include "graph-network-indexer.fullname" . }}-{{ $componentName }}
labels:
{{- include "graph-network-indexer.labels" . | nindent 4 }}
{{- $componentLabel | nindent 4 }}
Expand Down
34 changes: 22 additions & 12 deletions charts/graph-network-indexer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,24 +64,34 @@ indexerDefaults:

subgraphs.network:
syncing_interval_secs: 60
# # Query URL for the Graph Network subgraph.
# query_url: "https://gateway-arbitrum.network.thegraph.com/api/YOUR_API_KEY/subgraphs/id/NETWORK_SUBGRAPH"

# # Optional, deployment to look for in the local `graph-node`, if locally indexed.
# # Locally indexing the subgraph is recommended.
# # NOTE: Use `query_url` or `deployment_id` only
# -- (required) Query URL for the Graph Network subgraph.
# For optimal performance, it's recommended to locally index the subgraph.
# If locally indexed, use a combination of `deployment_id` and `query_url` pointing to your graph-node-query.
# If not locally indexed, use the gateway URL.
query_url: "http://your-graph-node-query:8000/subgraphs/id/NETWORK_SUBGRAPH"

# -- (optional) Deployment ID for locally indexed subgraph.
# Use this in combination with `query_url` pointing to your graph-node-query.
# deployment_id: "Qmaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

# Example for non-locally indexed subgraph:
# query_url: "https://gateway-arbitrum.network.thegraph.com/api/YOUR_API_KEY/subgraphs/id/NETWORK_SUBGRAPH"

subgraphs.escrow:
syncing_interval_secs: 60
# # Query URL for the Graph Network subgraph.
# query_url: "https://gateway-arbitrum.network.thegraph.com/api/YOUR_API_KEY/subgraphs/id/TAP_ESCROW_SUBGRAPH"

# # Optional, deployment to look for in the local `graph-node`, if locally indexed.
# # Locally indexing the subgraph is recommended.
# # NOTE: Use `query_url` or `deployment_id` only
# -- (required) Query URL for the Graph Escrow subgraph.
# For optimal performance, it's recommended to locally index the subgraph.
# If locally indexed, use a combination of `deployment_id` and `query_url` pointing to your graph-node-query.
# If not locally indexed, use the gateway URL.
query_url: "http://your-graph-node-query:8000/subgraphs/id/TAP_ESCROW_SUBGRAPH"

# -- (optional) Deployment ID for locally indexed subgraph.
# Use this in combination with `query_url` pointing to your graph-node-query.
# deployment_id: "Qmaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

# Example for non-locally indexed subgraph:
# query_url: "https://gateway-arbitrum.network.thegraph.com/api/YOUR_API_KEY/subgraphs/id/TAP_ESCROW_SUBGRAPH"

blockchain:
chain_id: "valid_blockchain_chain_id"
# find TAPVerifier address at https://github.com/semiotic-ai/timeline-aggregation-protocol-contracts/blob/main/addresses.json
Expand Down

0 comments on commit 1dd5ed3

Please sign in to comment.