Skip to content

mbp-1144: Split qtodo-db to a dedicated namespace - #169

Open
mlorenzofr wants to merge 1 commit into
validatedpatterns:mainfrom
mlorenzofr:mbp-1144
Open

mbp-1144: Split qtodo-db to a dedicated namespace#169
mlorenzofr wants to merge 1 commit into
validatedpatterns:mainfrom
mlorenzofr:mbp-1144

Conversation

@mlorenzofr

Copy link
Copy Markdown
Collaborator

Summary

Extracts the PostgreSQL database from the qtodo namespace into a new, dedicated
qtodo-db namespace as a separate Helm chart and Argo CD application.

Changes

  • New chart: charts/qtodo-db — self-contained Helm chart for the PostgreSQL
    StatefulSet, ExternalSecret, NetworkPolicies, and ServiceAccount
  • values-hub.yaml: registers qtodo-db as a new namespace and ArgoCD
    application (sync-wave 37, ahead of qtodo)
  • charts/qtodo: removes embedded DB resources, updates NetworkPolicy to
    reference the qtodo-db namespace, and updates the app deployment to rely on the
    SPIFFE-based Vault path for DB credentials
  • ACS policies: adds namespace label qtodo-db to relevant policy scope
    annotations
  • Docs: updates docs/multi-tier.md and docs/SYNC-WAVE-INVENTORY.md to
    reflect the new two-namespace layout

@mlorenzofr
mlorenzofr requested review from p-rog and sabre1041 August 3, 2026 14:33

@sabre1041 sabre1041 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This looks really good. Functionality works as expected. Only 1 small question

env:
- name: QUARKUS_DATASOURCE_JDBC_URL
value: 'jdbc:postgresql://qtodo-db:5432/{{ .Values.postgresql.auth.database }}'
value: 'jdbc:postgresql://{{ .Values.postgresql.host }}:5432/{{ .Values.postgresql.auth.database }}'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is there a reason why the port is not externalized as well?

Signed-off-by: Manuel Lorenzo <mlorenzofr@redhat.com>
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.

2 participants