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

Update RDS postgres app implementation to execute postgres Query from pod #1946

Merged
merged 15 commits into from
Mar 16, 2023

Conversation

akankshakumari393
Copy link
Contributor

Change Overview

Currently, we had assumed that the RDS Postgres instance would be accessible publicly, and we utilized Postgres drivers to execute queries in the database. However, this approach would not have been viable if we were dealing with private instances. In order to address this issue, this PR alters the implementation of the RDS application, allowing for queries to be executed using psql from a deployment resource instead.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • fixes #issue-number

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2023

Thanks for submitting this pull request 🎉. The team will review it soon and get back to you.

If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document.

@infraq infraq added this to In Progress in Kanister Mar 9, 2023
@akankshakumari393 akankshakumari393 changed the title Update RDS postgres app implementation to execute postgres command from pod Update RDS postgres app implementation to execute postgres Query from pod Mar 9, 2023
@akankshakumari393 akankshakumari393 marked this pull request as ready for review March 9, 2023 04:32
pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
… Deployment

Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
pkg/app/utils.go Outdated Show resolved Hide resolved
pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
pkg/app/utils.go Outdated Show resolved Hide resolved
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Copy link
Contributor

@PrasadG193 PrasadG193 left a comment

Choose a reason for hiding this comment

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

Looks good.

pkg/app/utils.go Show resolved Hide resolved
Kanister automation moved this from In Progress to Reviewer approved Mar 10, 2023
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Copy link
Contributor

@viveksinghggits viveksinghggits left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
@mergify mergify bot merged commit cac55c9 into master Mar 16, 2023
Kanister automation moved this from Reviewer approved to Done Mar 16, 2023
@mergify mergify bot deleted the use_pod_rds_postgres branch March 16, 2023 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants