Skip to content

Commit

Permalink
[stacks-blockchain-api] remove default initdb script, fix apiWriter d…
Browse files Browse the repository at this point in the history
…ataSource field
  • Loading branch information
CharlieC3 committed Oct 5, 2022
1 parent 05692d6 commit 9480126
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 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: 1.1.6
version: 1.1.7
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ spec:
{{- if .Values.apiWriter.persistence.bns.selector }}
selector: {{- include "common.tplvalues.render" (dict "value" .Values.apiWriter.persistence.bns.selector "context" $) | nindent 10 }}
{{- end }}
{{- if .Values.apiWriter.persistence.bns.bnsSource }}
bnsSource: {{- include "common.tplvalues.render" (dict "value" .Values.apiWriter.persistence.bns.bnsSource "context" $) | nindent 4 }}
{{- if .Values.apiWriter.persistence.bns.dataSource }}
dataSource: {{- include "common.tplvalues.render" (dict "value" .Values.apiWriter.persistence.bns.dataSource "context" $) | nindent 4 }}
{{- end }}
{{- include "common.storage.class" (dict "persistence" .Values.apiWriter.persistence.bns "global" .Values.global) | nindent 8 }}
{{- end }}
Expand Down
30 changes: 15 additions & 15 deletions hirosystems/stacks-blockchain-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1087,20 +1087,20 @@ postgresql:
auth:
database: stacks_blockchain_api
primary:
initdb:
scripts:
create_schema.sql: |
revoke all on database stacks_blockchain_api from public;
grant all privileges on database stacks_blockchain_api to postgres;
\c stacks_blockchain_api;
drop schema if exists stacks_blockchain_api cascade;
alter database stacks_blockchain_api set default_transaction_read_only = off;
alter database stacks_blockchain_api owner to postgres;
create schema if not exists stacks_blockchain_api authorization postgres;
alter database stacks_blockchain_api set search_path TO stacks_blockchain_api,public;
alter user postgres in database stacks_blockchain_api set search_path TO stacks_blockchain_api,public;
revoke all on schema public from public;
revoke all on schema stacks_blockchain_api from public;
grant all on schema stacks_blockchain_api to postgres;
# initdb:
# scripts:
# create_schema.sql: |
# revoke all on database stacks_blockchain_api from public;
# grant all privileges on database stacks_blockchain_api to postgres;
# \c stacks_blockchain_api;
# drop schema if exists stacks_blockchain_api cascade;
# alter database stacks_blockchain_api set default_transaction_read_only = off;
# alter database stacks_blockchain_api owner to postgres;
# create schema if not exists stacks_blockchain_api authorization postgres;
# alter database stacks_blockchain_api set search_path TO stacks_blockchain_api,public;
# alter user postgres in database stacks_blockchain_api set search_path TO stacks_blockchain_api,public;
# revoke all on schema public from public;
# revoke all on schema stacks_blockchain_api from public;
# grant all on schema stacks_blockchain_api to postgres;
persistence:
size: 50Gi

0 comments on commit 9480126

Please sign in to comment.