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

#2329 Create db connection to Alembic for the CC team #2808

Merged
merged 9 commits into from
Apr 5, 2024

Conversation

agile-josiah
Copy link
Contributor

What was the problem?

Draft pr for dev: CC team needs to connect to the rds db for use with alembic to create tables and

Associated tickets or Slack threads:

How does this fix it?1

Adds refs to the secrets in lens, currently only in dev

Footnotes

  1. Pull-Requests guidelines. If PR is significant, update Current Software State wiki page.

Copy link
Contributor

github-actions bot commented Mar 28, 2024

Test Results

151 tests  ±0   151 ✅ ±0   47s ⏱️ -1s
 46 suites ±0     0 💤 ±0 
 46 files   ±0     0 ❌ ±0 

Results for commit afa842d. ± Comparison against base commit 032c4ec.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Mar 28, 2024

JaCoCo Test Coverage

Overall Project 76.03%

There is no coverage information present for the Files changed

@agile-josiah agile-josiah changed the title #2329 WIP Create db connection to Alembic for the CC team #2329 Create db connection to Alembic for the CC team Apr 3, 2024
@agile-josiah agile-josiah self-assigned this Apr 3, 2024
@agile-josiah agile-josiah requested review from msnwatson, Ponnia-M and a team April 3, 2024 22:02
@agile-josiah agile-josiah marked this pull request as ready for review April 3, 2024 22:02
@agile-josiah agile-josiah requested a review from a team as a code owner April 3, 2024 22:02
Copy link
Contributor

@msnwatson msnwatson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a little confusing but the named templates are symlinked across all the deployments I think so we'll want to make a new file just in the CC directory

helm/_shared/named_templates/_postgres.tpl Outdated Show resolved Hide resolved
@agile-josiah agile-josiah requested a review from msnwatson April 3, 2024 23:06
@@ -29,6 +29,8 @@ spec:
{{- include "vro.commonEnvVars" . | nindent 12 }}
{{- include "vro.mqClient.envVars" . | nindent 12 }}
{{- include "vro.redisClient.envVars" . | nindent 12 }}
{{- include "domainCc.alembic.envVars" . | nindent 12 }}
{{- include "vro.postgresUrl" . | nindent 12 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYSA @tyler-spangler6 this allows us to make use of DB_URL from env vars (e.g. os.environ.get() in python)
See linked file here.

@agile-josiah agile-josiah merged commit edc470c into develop Apr 5, 2024
@agile-josiah agile-josiah deleted the josiah/#2329/domain-cc-alembic branch April 5, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants