Skip to content

Conversation

@jinzishuai
Copy link

Implements support for external managed databases (AWS RDS, Google Cloud SQL, Azure Database for PostgreSQL) as an alternative to in-cluster PostgreSQL.

Changes:

  • Add postgres.external.enabled and postgres.external.databaseUrl config
  • Update deployment templates with conditional DATABASE_URL logic
  • Create secret-external-db.yaml template for external credentials
  • Skip PostgreSQL deployment when external database is enabled
  • Update values.schema.json with new configuration fields
  • Add comprehensive RDS example configuration
  • Maintain 100% backward compatibility with existing deployments

Testing:

  • Schema validation passes for both modes
  • External mode: Creates external-db-secret, skips PostgreSQL
  • In-cluster mode: Works unchanged with existing configuration
  • Both gateway and migration job use correct DATABASE_URL

Documentation:

  • RDS_CONFIGURATION_PLAN.md: Design and implementation details
  • RDS_IMPLEMENTATION_SUMMARY.md: Testing and usage guide
  • examples/values-rds.yaml: Production-ready AWS RDS example

Fixes #1722

📝 Pull Request Template Selection

Thank you for contributing! To help us review your pull request effectively, please select the appropriate template (go to the Preview tab and select the appropriate sub-template):

Alternatively, after opening your pull request, you can choose the appropriate template from the "Choose a template" dropdown menu located at the top-right of the description box.

If none of the above templates fit your changes, feel free to provide a clear and concise description of your pull request below.

Implements support for external managed databases (AWS RDS, Google Cloud SQL,
Azure Database for PostgreSQL) as an alternative to in-cluster PostgreSQL.

Changes:
- Add postgres.external.enabled and postgres.external.databaseUrl config
- Update deployment templates with conditional DATABASE_URL logic
- Create secret-external-db.yaml template for external credentials
- Skip PostgreSQL deployment when external database is enabled
- Update values.schema.json with new configuration fields
- Add comprehensive RDS example configuration
- Maintain 100% backward compatibility with existing deployments

Testing:
- Schema validation passes for both modes
- External mode: Creates external-db-secret, skips PostgreSQL
- In-cluster mode: Works unchanged with existing configuration
- Both gateway and migration job use correct DATABASE_URL

Documentation:
- RDS_CONFIGURATION_PLAN.md: Design and implementation details
- RDS_IMPLEMENTATION_SUMMARY.md: Testing and usage guide
- examples/values-rds.yaml: Production-ready AWS RDS example

Fixes IBM#1722

Signed-off-by: Shi Jin <[email protected]>
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.

[Feature Request]: Support External Database host/url

1 participant