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

Make data browser pg tables configurable #4842

Merged
merged 1 commit into from
Jul 9, 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
7 changes: 7 additions & 0 deletions data-browser/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,19 @@ dbconfig {

table {
2023 = "modifiedlar2023_snapshot_05012024"
2023 = ${?MLAR_TABLE_2023}
2022 = "modifiedlar2022_one_year_05012024"
2022 = ${?MLAR_TABLE_2022}
2021 = "modifiedlar2021_one_year_05012023"
2021 = ${?MLAR_TABLE_2021}
2020 = "modifiedlar2020_three_year_05012024"
2020 = ${?MLAR_TABLE_2020}
2019 = "modifiedlar2019_three_year_04122023"
2019 = ${?MLAR_TABLE_2019}
2018 = "modifiedlar2018_three_year_04052022"
2018 = ${?MLAR_TABLE_2018}
2017 = "modifiedlar2017_ultimate"
2017 = ${?MLAR_TABLE_2017}
}

user = "hmda_user"
Expand Down
7 changes: 7 additions & 0 deletions kubernetes/config-maps/pgtables-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ data:
pgtable.historyTableName: "submission_history"
pgtable.tsTableName2019: "transmittalsheet2019"
pgtable.larTableName2019: "loanapplicationregister2019"
mlartable.2023: "modifiedlar2023_snapshot_05012024"
mlartable.2022: "modifiedlar2022_one_year_05012024"
mlartable.2021: "modifiedlar2021_one_year_05012023"
mlartable.2020: "modifiedlar2020_three_year_05012024"
mlartable.2019: "modifiedlar2019_three_year_04122023"
mlartable.2018: "modifiedlar2018_three_year_04052022"
mlartable.2017: "modifiedlar2017_ultimate"
30 changes: 27 additions & 3 deletions kubernetes/hmda-data-browser-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,35 @@ spec:
- name: DATABROWSER_PG_TABLE_2017
value: intentionally_left_blank
- name: DATABROWSER_PG_TABLE_2018
value: modifiedlar2018_three_year_04052022
valueFrom:
configMapKeyRef:
name: pgtables-configmap
key: mlartable.2018
- name: DATABROWSER_PG_TABLE_2019
value: modifiedlar2019_one_year_04052022
valueFrom:
configMapKeyRef:
name: pgtables-configmap
key: mlartable.2019
- name: DATABROWSER_PG_TABLE_2020
value: modifiedlar2020_one_year_04302022
valueFrom:
configMapKeyRef:
name: pgtables-configmap
key: mlartable.2020
- name: DATABROWSER_PG_TABLE_2021
valueFrom:
configMapKeyRef:
name: pgtables-configmap
key: mlartable.2021
- name: DATABROWSER_PG_TABLE_2022
valueFrom:
configMapKeyRef:
name: pgtables-configmap
key: mlartable.2022
- name: DATABROWSER_PG_TABLE_2023
valueFrom:
configMapKeyRef:
name: pgtables-configmap
key: mlartable.2023
- name: REDIS_HOSTNAME
value: {{.Values.databrowser.redis}}
- name: REDIS_PROTOCOL
Expand Down
Loading