Skip to content

Commit

Permalink
[stacks-blockchain-api]: support custom blockchain IDs and rev app ve…
Browse files Browse the repository at this point in the history
…rsion
  • Loading branch information
CharlieC3 committed Sep 17, 2024
1 parent de6d535 commit 34c70ad
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
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.13.2
appVersion: 8.0.0
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.13
version: 5.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ spec:
- name: STACKS_CHAIN_ID
{{- if eq .Values.blockchainNetwork "mainnet" }}
value: "0x00000001"
{{- else }}
{{- else if eq .Values.blockchainNetwork "testnet" }}
value: "0x80000000"
{{- else }}
value: {{ default "0x80000000" .Values.blockchainNetwork | quote }}
{{- end }}
- name: STACKS_CORE_EVENT_PORT
value: {{ default "3700" .Values.apiReader.containerPorts.socket | quote }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ spec:
- name: STACKS_CHAIN_ID
{{- if eq .Values.blockchainNetwork "mainnet" }}
value: "0x00000001"
{{- else }}
{{- else if eq .Values.blockchainNetwork "testnet" }}
value: "0x80000000"
{{- else }}
value: {{ default "0x80000000" .Values.blockchainNetwork | quote }}
{{- end }}
- name: STACKS_CORE_EVENT_PORT
value: {{ default "3700" .Values.apiRosettaReader.containerPorts.socket | quote }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,10 @@ spec:
- name: STACKS_CHAIN_ID
{{- if eq .Values.blockchainNetwork "mainnet" }}
value: "0x00000001"
{{- else }}
{{- else if eq .Values.blockchainNetwork "testnet" }}
value: "0x80000000"
{{- else }}
value: {{ default "0x80000000" .Values.blockchainNetwork | quote }}
{{- end }}
- name: STACKS_EVENTS_DIR
value: {{ .Values.apiWriter.persistence.data.mountPath }}/events
Expand Down
6 changes: 3 additions & 3 deletions hirosystems/stacks-blockchain-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ apiWriter:
image:
registry: docker.io
repository: hirosystems/stacks-blockchain-api
tag: 7.13.2
tag: 8.0.0
## 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 @@ -614,7 +614,7 @@ apiReader:
image:
registry: docker.io
repository: hirosystems/stacks-blockchain-api
tag: 7.13.2
tag: 8.0.0
## 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 @@ -973,7 +973,7 @@ apiRosettaReader:
image:
registry: docker.io
repository: hirosystems/stacks-blockchain-api
tag: 7.13.2
tag: 8.0.0
## 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 34c70ad

Please sign in to comment.