fix: hardcode pgvector port to 5432 until lcore fix - #46
Conversation
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
PR Summary by QodoHardcode pgvector port to 5432 in GitOps manifest generator (temporary workaround)
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. PGVECTOR override removed
|
| print " config:" | ||
| print " host: ${env.PGVECTOR_HOST:=lightspeed-postgres-svc.lightspeed-postgres.svc.cluster.local}" | ||
| print " port: \"${env.PGVECTOR_PORT:=5432}\"" | ||
| print " port: \"5432\" # TODO: fix lcore parsing and revert back to env" |
There was a problem hiding this comment.
1. Pgvector override removed 🐞 Bug ☼ Reliability
scripts/generate-gitops-manifests.sh now always emits pgvector port "5432" and ignores any PGVECTOR_PORT value. Deployments that require a non-default Postgres port will be unable to configure it via env and may fail to connect.
Agent Prompt
### Issue description
The GitOps manifest generator hardcodes the pgvector `port` to `5432`, removing the previously supported `${env.PGVECTOR_PORT:=5432}` override path.
### Issue Context
Other pgvector connection fields (`host`, `db`, `user`, `password`) are still generated using `${env...}` expressions, so `port` being fixed is an inconsistent and potentially breaking regression for any environment not using 5432.
### Fix Focus Areas
- scripts/generate-gitops-manifests.sh[41-56]
### Suggested fix
Update the generated port line to preserve configurability with a safe default, e.g.:
- `print " port: ${env.PGVECTOR_PORT:=5432}"`
If the underlying parsing issue requires a numeric type, consider emitting it unquoted:
- `print " port: ${env.PGVECTOR_PORT:=5432}"` (no surrounding YAML quotes on the value)
Keep any temporary notes as a comment in the script (not necessarily in the generated YAML) and, if possible, link to a tracking issue for reverting once the lcore fix lands.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
What does this PR do?:
5432as LCORE is not parsing env vars properly as strings.Which issue(s) this PR fixes:
N/A
PR acceptance criteria:
Testing and documentation do not need to be complete in order for this PR to be approved. We just need to ensure tracking issues are opened and linked to this PR, if they are not in the PR scope due to various constraints.
Tested and Verified
Documentation (READMEs, Product Docs, Blogs, Education Modules, etc.)
How to test changes / Special notes to the reviewer: