Skip to content

Commit 1bf7328

Browse files
authored
feat(stacks-blockchain-api): upgrade version, update env vars and order (#40)
1 parent ec84920 commit 1bf7328

5 files changed

Lines changed: 18 additions & 21 deletions

File tree

hirosystems/stacks-blockchain-api/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
annotations:
22
category: ApplicationServer
33
apiVersion: v2
4-
appVersion: 8.11.1
4+
appVersion: 8.11.2
55
dependencies:
66
- condition: stacks-blockchain.enabled
77
name: stacks-blockchain
@@ -41,4 +41,4 @@ sources:
4141
- https://github.com/hirosystems/stacks-blockchain-api
4242
- https://docs.hiro.so/api
4343
- https://docs.hiro.so/get-started/stacks-blockchain-api
44-
version: 6.3.0
44+
version: 6.4.0

hirosystems/stacks-blockchain-api/templates/api-reader/deployment.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ spec:
9494
args: {{- include "common.tplvalues.render" (dict "value" .Values.apiReader.args "context" $) | nindent 12 }}
9595
{{- end }}
9696
env:
97-
- name: STACKS_READ_ONLY_MODE
98-
value: "true"
97+
{{- if .Values.apiReader.extraEnvVars }}
98+
{{- include "common.tplvalues.render" (dict "value" .Values.apiReader.extraEnvVars "context" $) | nindent 12 }}
99+
{{- end }}
100+
- name: STACKS_API_MODE
101+
value: "readonly"
99102
- name: STACKS_API_LOG_LEVEL
100103
value: {{ ternary "debug" "info" (or .Values.apiReader.image.debug .Values.diagnosticMode.enabled) | quote }}
101104
- name: STACKS_CHAIN_ID
@@ -166,9 +169,6 @@ spec:
166169
{{- end }}
167170
- name: NODE_ENV
168171
value: production
169-
{{- if .Values.apiReader.extraEnvVars }}
170-
{{- include "common.tplvalues.render" (dict "value" .Values.apiReader.extraEnvVars "context" $) | nindent 12 }}
171-
{{- end }}
172172
envFrom:
173173
{{- if .Values.apiReader.extraEnvVarsCM }}
174174
- configMapRef:

hirosystems/stacks-blockchain-api/templates/api-rosetta-reader/deployment.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ spec:
9494
args: {{- include "common.tplvalues.render" (dict "value" .Values.apiRosettaReader.args "context" $) | nindent 12 }}
9595
{{- end }}
9696
env:
97-
- name: STACKS_READ_ONLY_MODE
98-
value: "true"
97+
{{- if .Values.apiRosettaReader.extraEnvVars }}
98+
{{- include "common.tplvalues.render" (dict "value" .Values.apiRosettaReader.extraEnvVars "context" $) | nindent 12 }}
99+
{{- end }}
100+
- name: STACKS_API_MODE
101+
value: "readonly"
99102
- name: STACKS_API_LOG_LEVEL
100103
value: {{ ternary "debug" "info" (or .Values.apiRosettaReader.image.debug .Values.diagnosticMode.enabled) | quote }}
101104
- name: STACKS_CHAIN_ID
@@ -166,9 +169,6 @@ spec:
166169
{{- end }}
167170
- name: NODE_ENV
168171
value: production
169-
{{- if .Values.apiRosettaReader.extraEnvVars }}
170-
{{- include "common.tplvalues.render" (dict "value" .Values.apiRosettaReader.extraEnvVars "context" $) | nindent 12 }}
171-
{{- end }}
172172
envFrom:
173173
{{- if .Values.apiRosettaReader.extraEnvVarsCM }}
174174
- configMapRef:

hirosystems/stacks-blockchain-api/templates/api-writer/statefulset.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ spec:
331331
args: {{- include "common.tplvalues.render" (dict "value" .Values.apiWriter.args "context" $) | nindent 12 }}
332332
{{- end }}
333333
env:
334+
{{- if .Values.apiWriter.extraEnvVars }}
335+
{{- include "common.tplvalues.render" (dict "value" .Values.apiWriter.extraEnvVars "context" $) | nindent 12 }}
336+
{{- end }}
334337
- name: STACKS_API_LOG_LEVEL
335338
value: {{ ternary "debug" "info" (or .Values.apiWriter.image.debug .Values.diagnosticMode.enabled) | quote }}
336339
- name: STACKS_CHAIN_ID
@@ -363,8 +366,6 @@ spec:
363366
value: {{ ternary "1" "0" .Values.apiWriter.config.enableNftMetadata | quote }}
364367
- name: STACKS_ADDRESS_CACHE_SIZE
365368
value: {{ default "50000" .Values.apiWriter.config.stacksAddressCacheSize | quote }}
366-
- name: STACKS_API_TOKEN_METADATA_STRICT_MODE
367-
value: {{ ternary "1" "0" .Values.apiWriter.config.enableTokenMetadataStrictMode | quote }}
368369
- name: PG_DATABASE
369370
value: {{ include "stacksBlockchainApi.postgresql.database" . }}
370371
- name: PG_SCHEMA
@@ -407,9 +408,6 @@ spec:
407408
- name: BNS_IMPORT_DIR
408409
value: {{ .Values.apiWriter.persistence.bns.mountPath }}
409410
{{- end }}
410-
{{- if .Values.apiWriter.extraEnvVars }}
411-
{{- include "common.tplvalues.render" (dict "value" .Values.apiWriter.extraEnvVars "context" $) | nindent 12 }}
412-
{{- end }}
413411
envFrom:
414412
{{- if .Values.apiWriter.extraEnvVarsCM }}
415413
- configMapRef:

hirosystems/stacks-blockchain-api/values.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ apiWriter:
103103
enableFtMetadata: true
104104
enableNftMetadata: false
105105
bindAddress: "0.0.0.0"
106-
enableTokenMetadataStrictMode: true
107106
pgConnectionPoolMax: "50"
108107
stacksAddressCacheSize: "50000"
109108
## Hiro Systems Stacks Blockchain API Writer image
@@ -118,7 +117,7 @@ apiWriter:
118117
image:
119118
registry: docker.io
120119
repository: hirosystems/stacks-blockchain-api
121-
tag: 8.11.1
120+
tag: 8.11.2
122121
## Specify a imagePullPolicy
123122
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
124123
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -614,7 +613,7 @@ apiReader:
614613
image:
615614
registry: docker.io
616615
repository: hirosystems/stacks-blockchain-api
617-
tag: 8.11.1
616+
tag: 8.11.2
618617
## Specify a imagePullPolicy
619618
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
620619
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -973,7 +972,7 @@ apiRosettaReader:
973972
image:
974973
registry: docker.io
975974
repository: hirosystems/stacks-blockchain-api
976-
tag: 8.11.1
975+
tag: 8.11.2
977976
## Specify a imagePullPolicy
978977
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
979978
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images

0 commit comments

Comments
 (0)