From 8d45fe317fd96a1f4b1ef224154049e20945fb36 Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Wed, 21 Aug 2024 11:59:50 +0300 Subject: [PATCH 1/2] Add MODE env variable to distinguish indexer and api applications --- .../templates/blockscout-deployment.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/charts/blockscout-stack/templates/blockscout-deployment.yaml b/charts/blockscout-stack/templates/blockscout-deployment.yaml index e4bec7d..97fc1ce 100644 --- a/charts/blockscout-stack/templates/blockscout-deployment.yaml +++ b/charts/blockscout-stack/templates/blockscout-deployment.yaml @@ -117,6 +117,13 @@ spec: containerPort: 4000 protocol: TCP env: + {{- if .Values.blockscout.separateApi.enabled }} + - name: MODE + value: "api" + {{- else }} + - name: MODE + value: "all" + {{- end }} - name: PORT value: "4000" - name: CHAIN_ID @@ -264,6 +271,8 @@ spec: containerPort: 4000 protocol: TCP env: + - name: MODE + - value: "indexer" - name: PORT value: "4000" - name: CHAIN_ID From a5de02ca3fc2b96bd1307234b306c7a0f8883e58 Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Wed, 21 Aug 2024 13:57:34 +0300 Subject: [PATCH 2/2] Bump chart version and add changelog --- charts/blockscout-stack/CHANGELOG.md | 6 ++++++ charts/blockscout-stack/Chart.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/blockscout-stack/CHANGELOG.md b/charts/blockscout-stack/CHANGELOG.md index 6b1ab2a..2347c31 100644 --- a/charts/blockscout-stack/CHANGELOG.md +++ b/charts/blockscout-stack/CHANGELOG.md @@ -1,5 +1,11 @@ # ChangeLog +## 1.6.4 + +### Feature + +- Adding MODE env variable for backend to distinguish API/indexer applications. + ## 1.6.3 ### Feature diff --git a/charts/blockscout-stack/Chart.yaml b/charts/blockscout-stack/Chart.yaml index 0efb8f0..2570bc3 100644 --- a/charts/blockscout-stack/Chart.yaml +++ b/charts/blockscout-stack/Chart.yaml @@ -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: 1.6.3 +version: 1.6.4 # 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