Skip to content

Commit

Permalink
[stacks-blockchain-api] fix bns enable/disable
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieC3 committed Mar 7, 2024
1 parent 37e6f44 commit a2f9d6b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions hirosystems/stacks-blockchain-api/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ dependencies:
version: 12.12.10
- name: common
repository: https://charts.bitnami.com/bitnami
version: 2.16.1
digest: sha256:31141fd89a57a180fabae2140abcd5ac63167291632387ac96e4c15acb6233cc
generated: "2024-02-20T11:08:49.920299-05:00"
version: 2.18.0
digest: sha256:34f64f2fd21ab0b2e0b30167f9158585b8a731c9f4bd339f38985da43edf06ee
generated: "2024-03-07T12:48:29.306263-05:00"
4 changes: 2 additions & 2 deletions hirosystems/stacks-blockchain-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
annotations:
category: ApplicationServer
apiVersion: v2
appVersion: 7.3.6
appVersion: 7.8.2
dependencies:
- condition: stacks-blockchain.enabled
name: stacks-blockchain
Expand Down Expand Up @@ -41,4 +41,4 @@ sources:
- https://github.com/hirosystems/stacks-blockchain-api
- https://docs.hiro.so/api
- https://docs.hiro.so/get-started/stacks-blockchain-api
version: 5.0.5
version: 5.0.6
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,10 @@ spec:
{{- end }}
- name: NODE_ENV
value: production
{{- if .Values.apiWriter.config.bns.enabled }}
- name: BNS_IMPORT_DIR
value: {{ .Values.apiWriter.persistence.bns.mountPath }}
{{- end }}
{{- if .Values.apiWriter.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.apiWriter.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
Expand Down
10 changes: 7 additions & 3 deletions hirosystems/stacks-blockchain-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ apiWriter:
# Replay events from the API's TSV file into the Postgres database
# CAUTION: THIS WILL WIPE YOUR CURRENT DATABASE

## @param bns Enable or disable BNS
##
bns:
enabled: true
# Note: exportEvents.compressEventsData should be set to 'true' when you intend to replayEvents immediately after
exportEvents:
enabled: false
Expand Down Expand Up @@ -114,7 +118,7 @@ apiWriter:
image:
registry: docker.io
repository: hirosystems/stacks-blockchain-api
tag: 7.3.6
tag: 7.8.2
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down Expand Up @@ -610,7 +614,7 @@ apiReader:
image:
registry: docker.io
repository: hirosystems/stacks-blockchain-api
tag: 7.3.6
tag: 7.8.2
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down Expand Up @@ -968,7 +972,7 @@ apiRosettaReader:
image:
registry: docker.io
repository: hirosystems/stacks-blockchain-api
tag: 7.3.6
tag: 7.8.2
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down

0 comments on commit a2f9d6b

Please sign in to comment.