Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PM-1954 update payout reports chart to work with 1.1.0 #267

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
10 changes: 10 additions & 0 deletions mina-payout-reports/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
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
Loading