Skip to content

Commit

Permalink
PM-1954 update payout reports chart to work with 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
simisimis committed Sep 12, 2024
1 parent 5630c86 commit 24c1898
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mina-payout-reports/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ helmfile status
| payoutReportsApi.aws.region | string | `"us-west-2"` | AWS Region |
| payoutReportsApi.aws.secretAccessKey | string | `""` | AWS access key secret(leave empty to assume role) |
| payoutReportsApi.contactDetailsSpreadsheetName | string | `""` | Google spreadsheet containing contact details |
| payoutReportsApi.delegationDB.host | string | `"localhost"` | Delegation Program Database Host |
| payoutReportsApi.delegationDB.name | string | `"delegation_program"` | Delegation Program Database Name |
| payoutReportsApi.delegationDB.password | string | `"postgres"` | Delegation Program Database Password |
| payoutReportsApi.delegationDB.port | string | `"5432"` | Delegation Program Database Port |
| payoutReportsApi.delegationDB.user | string | `"postgres"` | Delegation Program Database User |
| payoutReportsApi.extraEnvVars | object | `{}` | Extra Environment Variables |
| payoutReportsApi.frontendPublicUrl | string | `"localhost:3000"` | Payout reports frontend public url accessible from the client |
| payoutReportsApi.gcpServiceAccount | string | `""` | GCP ServiceAccount json data to create a secret from |
Expand Down
12 changes: 11 additions & 1 deletion mina-payout-reports/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apps/v1
piVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "mina-payout-reports.fullname" . }}-api
Expand Down Expand Up @@ -52,6 +52,16 @@ spec:
image: "{{ .image.repository }}:{{ .image.tag | default $.Chart.AppVersion }}"
imagePullPolicy: {{ .image.pullPolicy }}
env:
- name: POSTGRES_DELEGATION_HOST
value: {{ .delegationDB.host }}}
- name: POSTGRES_DELEGATION_PORT
value: {{ .delegationDB.port }}}
- name: POSTGRES_DELEGATION_USER
value: {{ .delegationDB.user }}}
- name: POSTGRES_DELEGATION_PASSWORD
value: {{ .delegationDB.password }}}
- name: POSTGRES_DELEGATION_DB
value: {{ .delegationDB.name }}}
- name: POSTGRES_PAYOUT_HOST
value: {{ .payoutsDB.host | quote }}
- name: POSTGRES_PAYOUT_PORT
Expand Down
11 changes: 11 additions & 0 deletions mina-payout-reports/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,17 @@ payoutReportsWeb:

# Configuration options for `mina-payout-reports` backend deployment
payoutReportsApi:
delegationDB:
# -- Delegation Program Database Host
host: "localhost"
# -- Delegation Program Database Port
port: "5432"
# -- Delegation Program Database User
user: "postgres"
# -- Delegation Program Database Password
password: "postgres"
# -- Delegation Program Database Name
name: "delegation_program"
payoutsDB:
# -- Delegation Program Payouts Database Host
host: "localhost"
Expand Down

0 comments on commit 24c1898

Please sign in to comment.