From 804fc2a3dc0528ee3c4d56e3b2560ea249ae54cd Mon Sep 17 00:00:00 2001 From: Donald Hutchison Date: Tue, 18 Jul 2023 12:54:32 +0200 Subject: [PATCH 1/3] Add tracer env var to chart. --- charts/blockscout/templates/blockscout-indexer.deployment.yaml | 2 ++ charts/blockscout/values.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/charts/blockscout/templates/blockscout-indexer.deployment.yaml b/charts/blockscout/templates/blockscout-indexer.deployment.yaml index 87a07593..76a2aa60 100644 --- a/charts/blockscout/templates/blockscout-indexer.deployment.yaml +++ b/charts/blockscout/templates/blockscout-indexer.deployment.yaml @@ -94,6 +94,8 @@ spec: value: {{ .Values.blockscout.indexer.primaryRpcRegion | quote }} - name: INDEXER_DISABLE_BLOCK_REWARD_FETCHER value: {{ not .Values.blockscout.indexer.fetchers.blockRewards.enabled | quote }} + - name: INDEXER_INTERNAL_TRANSACTIONS_TRACER_TYPE + value: {{ .Values.blockscout.indexer.tracerImplementation | quote }} {{- include "celo.blockscout.env-vars" $data | nindent 8 }} volumes: {{- include "celo.blockscout.volume.temporary-dir" . | nindent 8 }} diff --git a/charts/blockscout/values.yaml b/charts/blockscout/values.yaml index 658ef403..41666c0b 100644 --- a/charts/blockscout/values.yaml +++ b/charts/blockscout/values.yaml @@ -113,6 +113,8 @@ blockscout: rpcRegion: "indexer" # -- PRIMARY_REGION env variable for indexer pod. Do not change. primaryRpcRegion: "indexer" + # -- tracer to use to fetch internal transactions - 'js' or 'call_tracer' + tracerImplementation: "js" # -- Enable CELO blockRewards functionality fetchers: blockRewards: From aa996b23257ab3cf68fb37a9fc0fcbd15097104b Mon Sep 17 00:00:00 2001 From: Donald Hutchison Date: Tue, 18 Jul 2023 12:56:56 +0200 Subject: [PATCH 2/3] Bump chart patch version. --- charts/blockscout/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/blockscout/Chart.yaml b/charts/blockscout/Chart.yaml index 15807cdf..8d355a4a 100644 --- a/charts/blockscout/Chart.yaml +++ b/charts/blockscout/Chart.yaml @@ -1,7 +1,7 @@ --- apiVersion: v2 name: blockscout -version: 1.3.6 +version: 1.3.7 appVersion: v2.0.4-beta description: Chart which is used to deploy Blockscout for Celo Networks home: https://explorer.celo.org From bb634660a0aa63e98f87bc9a8b9d46ed76d574ea Mon Sep 17 00:00:00 2001 From: rkachowski Date: Tue, 18 Jul 2023 10:59:49 +0000 Subject: [PATCH 3/3] [Automatic] - Update chart README.md --- charts/blockscout/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/blockscout/README.md b/charts/blockscout/README.md index 0fa86106..c3cef438 100644 --- a/charts/blockscout/README.md +++ b/charts/blockscout/README.md @@ -2,7 +2,7 @@ Chart which is used to deploy Blockscout for Celo Networks -![Version: 1.3.6](https://img.shields.io/badge/Version-1.3.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.0.4-beta](https://img.shields.io/badge/AppVersion-v2.0.4--beta-informational?style=flat-square) +![Version: 1.3.7](https://img.shields.io/badge/Version-1.3.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.0.4-beta](https://img.shields.io/badge/AppVersion-v2.0.4--beta-informational?style=flat-square) - [blockscout](#blockscout) - [Chart requirements](#chart-requirements) @@ -36,7 +36,7 @@ To install/manage a release named `celo-mainnet-fullnode` connected to `mainnet` ```bash # Select the chart release to use -CHART_RELEASE="oci://us-west1-docker.pkg.dev/celo-testnet/clabs-public-oci/blockscout --version=1.3.6" # Use remote chart and specific version +CHART_RELEASE="oci://us-west1-docker.pkg.dev/celo-testnet/clabs-public-oci/blockscout --version=1.3.7" # Use remote chart and specific version CHART_RELEASE="./" # Use this local folder # (Only for local chart) Sync helm dependencies @@ -90,7 +90,7 @@ helm upgrade my-blockscout -f values-alfajores-blockscout2.yaml --namespace=celo | blockscout.eventStream.replicas | int | `0` | replicas for eventStream deployment | | blockscout.eventStream.resources | object | `{"requests":{"cpu":2,"memory":"1000Mi"}}` | resources for eventStream container | | blockscout.eventStream.strategy | object | `{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0}}` | UpdateStrategy for eventStream deployment | -| blockscout.indexer | object | `{"affinity":{},"db":{"connectionName":"project:region:db-name","name":"blockscout","port":5432,"proxy":{"resources":{"requests":{"cpu":"100m","memory":"40Mi"}}}},"fetchers":{"blockRewards":{"enabled":false}},"livenessProbe":{},"nodeSelector":{},"poolSize":200,"poolSizeReplica":5,"port":4001,"primaryRpcRegion":"indexer","readinessProbe":{"failureThreshold":5,"httpGet":{"path":"/health/readiness","port":"health","scheme":"HTTP"},"initialDelaySeconds":30,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":5},"resources":{"requests":{"cpu":2,"memory":"2G"}},"rpcRegion":"indexer","strategy":{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0}},"terminationGracePeriodSeconds":60}` | Configuraton for the indexer component | +| blockscout.indexer | object | `{"affinity":{},"db":{"connectionName":"project:region:db-name","name":"blockscout","port":5432,"proxy":{"resources":{"requests":{"cpu":"100m","memory":"40Mi"}}}},"fetchers":{"blockRewards":{"enabled":false}},"livenessProbe":{},"nodeSelector":{},"poolSize":200,"poolSizeReplica":5,"port":4001,"primaryRpcRegion":"indexer","readinessProbe":{"failureThreshold":5,"httpGet":{"path":"/health/readiness","port":"health","scheme":"HTTP"},"initialDelaySeconds":30,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":5},"resources":{"requests":{"cpu":2,"memory":"2G"}},"rpcRegion":"indexer","strategy":{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0}},"terminationGracePeriodSeconds":60,"tracerImplementation":"js"}` | Configuraton for the indexer component | | blockscout.indexer.affinity | object | `{}` | affinity for indexer pods | | blockscout.indexer.db | object | `{"connectionName":"project:region:db-name","name":"blockscout","port":5432,"proxy":{"resources":{"requests":{"cpu":"100m","memory":"40Mi"}}}}` | Database configuration for indexer. Prepared to be used with CloudSQL | | blockscout.indexer.db.connectionName | string | `"project:region:db-name"` | Name of the CloudSQL connection to use | @@ -108,6 +108,7 @@ helm upgrade my-blockscout -f values-alfajores-blockscout2.yaml --namespace=celo | blockscout.indexer.rpcRegion | string | `"indexer"` | MY_REGION env variable for indexer pod. Do not change. | | blockscout.indexer.strategy | object | `{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0}}` | UpdateStrategy for indexer deployment | | blockscout.indexer.terminationGracePeriodSeconds | int | `60` | termination timeout for indexer pod | +| blockscout.indexer.tracerImplementation | string | `"js"` | tracer to use to fetch internal transactions - 'js' or 'call_tracer' | | blockscout.metadataCrawler | object | `{"discordClusterName":"","enabled":false,"image":{"repository":"gcr.io/celo-testnet/celo-monorepo","tag":"metadata-crawler-77a392216d4927e85ce4b683508fc0539aa92a34"},"schedule":"0 */2 * * *"}` | Configuraton for the metadataCrawler component | | blockscout.metadataCrawler.discordClusterName | string | `""` | Discord server for notifications | | blockscout.metadataCrawler.schedule | string | `"0 */2 * * *"` | Cron schedule for the metadataCrawler |