Skip to content

Commit

Permalink
[stacks-blockchain-api] fix postgresql chart references
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieC3 committed Dec 12, 2023
1 parent 271bc3c commit 22fe623
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion hirosystems/stacks-blockchain-api/Chart.yaml
Original file line number Diff line number Diff line change
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.0
version: 5.0.1
2 changes: 1 addition & 1 deletion hirosystems/stacks-blockchain-api/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Return name of the CDN secret
Return name of the Postgres user
*/}}
{{- define "stacksBlockchainApi.postgresql.username" -}}
{{ default "postgres" (include "postgresql.username" .Subcharts.postgresql) }}
{{ default "postgres" (include "postgresql.v1.username" .Subcharts.postgresql) }}
{{- end -}}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,22 +125,22 @@ spec:
- name: STACKS_ADDRESS_CACHE_SIZE
value: {{ default "50000" .Values.apiReader.config.stacksAddressCacheSize | quote }}
- name: PG_DATABASE
value: {{ include "postgresql.database" .Subcharts.postgresql }}
value: {{ include "postgresql.v1.database" .Subcharts.postgresql }}
- name: PG_SCHEMA
value: {{ include "postgresql.database" .Subcharts.postgresql }}
value: {{ include "postgresql.v1.database" .Subcharts.postgresql }}
- name: PG_PRIMARY_HOST
value: {{ include "postgresql.primary.fullname" .Subcharts.postgresql }}
value: {{ include "postgresql.v1.primary.fullname" .Subcharts.postgresql }}
- name: PG_HOST
value: {{ include "common.names.fullname" .Subcharts.postgresql }}-all
- name: PG_PORT
value: {{ include "postgresql.service.port" .Subcharts.postgresql | quote }}
value: {{ include "postgresql.v1.service.port" .Subcharts.postgresql | quote }}
- name: PG_USER
value: {{ include "stacksBlockchainApi.postgresql.username" . }}
- name: PG_PASSWORD
valueFrom:
secretKeyRef:
key: {{ include "postgresql.adminPasswordKey" .Subcharts.postgresql }}
name: {{ include "postgresql.secretName" .Subcharts.postgresql }}
key: {{ include "postgresql.v1.adminPasswordKey" .Subcharts.postgresql }}
name: {{ include "postgresql.v1.secretName" .Subcharts.postgresql }}
- name: PG_APPLICATION_NAME
valueFrom:
fieldRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,22 +125,22 @@ spec:
- name: STACKS_ADDRESS_CACHE_SIZE
value: {{ default "50000" .Values.apiRosettaReader.config.stacksAddressCacheSize | quote }}
- name: PG_DATABASE
value: {{ include "postgresql.database" .Subcharts.postgresql }}
value: {{ include "postgresql.v1.database" .Subcharts.postgresql }}
- name: PG_SCHEMA
value: {{ include "postgresql.database" .Subcharts.postgresql }}
value: {{ include "postgresql.v1.database" .Subcharts.postgresql }}
- name: PG_PRIMARY_HOST
value: {{ include "postgresql.primary.fullname" .Subcharts.postgresql }}
value: {{ include "postgresql.v1.primary.fullname" .Subcharts.postgresql }}
- name: PG_HOST
value: {{ include "common.names.fullname" .Subcharts.postgresql }}-all
- name: PG_PORT
value: {{ include "postgresql.service.port" .Subcharts.postgresql | quote }}
value: {{ include "postgresql.v1.service.port" .Subcharts.postgresql | quote }}
- name: PG_USER
value: {{ include "stacksBlockchainApi.postgresql.username" . }}
- name: PG_PASSWORD
valueFrom:
secretKeyRef:
key: {{ include "postgresql.adminPasswordKey" .Subcharts.postgresql }}
name: {{ include "postgresql.secretName" .Subcharts.postgresql }}
key: {{ include "postgresql.v1.adminPasswordKey" .Subcharts.postgresql }}
name: {{ include "postgresql.v1.secretName" .Subcharts.postgresql }}
- name: PG_APPLICATION_NAME
valueFrom:
fieldRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,20 @@ spec:
- name: PG_HOST
value: {{ include "common.names.fullname" .Subcharts.postgresql }}-all
- name: PG_PORT
value: {{ include "postgresql.service.port" .Subcharts.postgresql | quote }}
value: {{ include "postgresql.v1.service.port" .Subcharts.postgresql | quote }}
- name: PG_USER
value: {{ include "stacksBlockchainApi.postgresql.username" . }}
- name: PG_DATABASE
value: {{ include "postgresql.database" .Subcharts.postgresql | quote }}
value: {{ include "postgresql.v1.database" .Subcharts.postgresql | quote }}
- name: PG_SCHEMA
value: {{ include "postgresql.database" .Subcharts.postgresql }}
value: {{ include "postgresql.v1.database" .Subcharts.postgresql }}
- name: PG_CONNECTION_POOL_MAX
value: {{ .Values.apiWriter.config.pgConnectionPoolMax | quote }}
- name: PG_PASSWORD
valueFrom:
secretKeyRef:
key: {{ include "postgresql.adminPasswordKey" .Subcharts.postgresql | quote }}
name: {{ include "postgresql.secretName" .Subcharts.postgresql | quote }}
key: {{ include "postgresql.v1.adminPasswordKey" .Subcharts.postgresql | quote }}
name: {{ include "postgresql.v1.secretName" .Subcharts.postgresql | quote }}
- name: DATA_DIR
value: {{ .Values.apiWriter.persistence.data.mountPath }}
command:
Expand Down Expand Up @@ -249,22 +249,22 @@ spec:
- name: STACKS_EVENTS_DIR
value: {{ .Values.apiWriter.persistence.data.mountPath }}/events
- name: PG_DATABASE
value: {{ include "postgresql.database" .Subcharts.postgresql }}
value: {{ include "postgresql.v1.database" .Subcharts.postgresql }}
- name: PG_SCHEMA
value: {{ include "postgresql.database" .Subcharts.postgresql }}
value: {{ include "postgresql.v1.database" .Subcharts.postgresql }}
- name: PG_PRIMARY_HOST
value: {{ include "postgresql.primary.fullname" .Subcharts.postgresql }}
value: {{ include "postgresql.v1.primary.fullname" .Subcharts.postgresql }}
- name: PG_HOST
value: {{ include "common.names.fullname" .Subcharts.postgresql }}-all
- name: PG_PORT
value: {{ include "postgresql.service.port" .Subcharts.postgresql | quote }}
value: {{ include "postgresql.v1.service.port" .Subcharts.postgresql | quote }}
- name: PG_USER
value: {{ include "stacksBlockchainApi.postgresql.username" . }}
- name: PG_PASSWORD
valueFrom:
secretKeyRef:
key: {{ include "postgresql.adminPasswordKey" .Subcharts.postgresql | quote }}
name: {{ include "postgresql.secretName" .Subcharts.postgresql | quote }}
key: {{ include "postgresql.v1.adminPasswordKey" .Subcharts.postgresql | quote }}
name: {{ include "postgresql.v1.secretName" .Subcharts.postgresql | quote }}
- name: PG_APPLICATION_NAME
valueFrom:
fieldRef:
Expand Down Expand Up @@ -357,22 +357,22 @@ spec:
- name: STACKS_API_TOKEN_METADATA_STRICT_MODE
value: {{ ternary "1" "0" .Values.apiWriter.config.enableTokenMetadataStrictMode | quote }}
- name: PG_DATABASE
value: {{ include "postgresql.database" .Subcharts.postgresql }}
value: {{ include "postgresql.v1.database" .Subcharts.postgresql }}
- name: PG_SCHEMA
value: {{ include "postgresql.database" .Subcharts.postgresql }}
value: {{ include "postgresql.v1.database" .Subcharts.postgresql }}
- name: PG_PRIMARY_HOST
value: {{ include "postgresql.primary.fullname" .Subcharts.postgresql }}
value: {{ include "postgresql.v1.primary.fullname" .Subcharts.postgresql }}
- name: PG_HOST
value: {{ include "common.names.fullname" .Subcharts.postgresql }}-all
- name: PG_PORT
value: {{ include "postgresql.service.port" .Subcharts.postgresql | quote }}
value: {{ include "postgresql.v1.service.port" .Subcharts.postgresql | quote }}
- name: PG_USER
value: {{ include "stacksBlockchainApi.postgresql.username" . }}
- name: PG_PASSWORD
valueFrom:
secretKeyRef:
key: {{ include "postgresql.adminPasswordKey" .Subcharts.postgresql }}
name: {{ include "postgresql.secretName" .Subcharts.postgresql }}
key: {{ include "postgresql.v1.adminPasswordKey" .Subcharts.postgresql }}
name: {{ include "postgresql.v1.secretName" .Subcharts.postgresql }}
- name: PG_APPLICATION_NAME
valueFrom:
fieldRef:
Expand Down

0 comments on commit 22fe623

Please sign in to comment.