Skip to content

Commit

Permalink
deploy: Add database namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Oct 13, 2023
1 parent 2cf7fd9 commit 81d1e81
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/marlowe-runtime/templates/chain-indexer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
- name: NODE_CONFIG
value: /node-config/network/{{ $network }}/cardano-node/config.json
- name: DB_NAME
value: chainsync_{{ $network }}
value: chainsync_{{ $instanceName }}_{{ $network }}
- name: DB_USER
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion deploy/marlowe-runtime/templates/chain-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
- name: NODE_CONFIG
value: /node-config/network/{{ $network }}/cardano-node/config.json
- name: DB_NAME
value: chainsync_{{ $network }}
value: chainsync_{{ $instanceName }}_{{ $network }}
- name: DB_HOST
value: {{ $.Values.databaseHost }}:5432
- name: DB_USER
Expand Down
2 changes: 1 addition & 1 deletion deploy/marlowe-runtime/templates/marlowe-indexer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
properties:
env:
- name: DB_NAME
value: chainsync_{{ . }}
value: chainsync_{{ $instanceName }}_{{ . }}
- name: DB_HOST
value: {{ $.Values.databaseHost }}:5432
- name: DB_USER
Expand Down
2 changes: 1 addition & 1 deletion deploy/marlowe-runtime/templates/marlowe-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
- name: MARLOWE_CHAIN_SYNC_QUERY_PORT
value: "3716"
- name: DB_NAME
value: chainsync_{{ $network }}
value: chainsync_{{ $instanceName }}_{{ $network }}
- name: DB_USER
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit 81d1e81

Please sign in to comment.