Skip to content

Commit

Permalink
Merge pull request #31 from blockscout/vb-add-mode-var
Browse files Browse the repository at this point in the history
Add MODE env variable to distinguish indexer and api applications
  • Loading branch information
alik-agaev authored Aug 21, 2024
2 parents 26b5751 + a5de02c commit bfd0814
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions charts/blockscout-stack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# ChangeLog

## 1.6.4

### Feature

- Adding MODE env variable for backend to distinguish API/indexer applications.

## 1.6.3

### Feature
Expand Down
2 changes: 1 addition & 1 deletion charts/blockscout-stack/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: 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
Expand Down
9 changes: 9 additions & 0 deletions charts/blockscout-stack/templates/blockscout-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -264,6 +271,8 @@ spec:
containerPort: 4000
protocol: TCP
env:
- name: MODE
- value: "indexer"
- name: PORT
value: "4000"
- name: CHAIN_ID
Expand Down

0 comments on commit bfd0814

Please sign in to comment.