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

Add provision to create and delete DBSubnetGroups for RDS integration test #1950

Merged
merged 41 commits into from
Mar 17, 2023

Conversation

akankshakumari393
Copy link
Contributor

Change Overview

This PR modifies RDS Postgres and Aurora apps to create and delete DBSubnet group. Also adds some utility functions related to that.

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

… 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>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
…ment

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>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
@github-actions
Copy link
Contributor

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 10, 2023
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>
…ment

Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
pkg/app/utils.go Outdated Show resolved Hide resolved
pkg/app/rds_aurora_mysql.go Outdated Show resolved Hide resolved
if err, ok := err.(awserr.Error); ok {
switch err.Code() {
case awsrds.ErrCodeDBSubnetGroupNotFoundFault:
log.Info().Print("Subnet Group Does not exist: ErrCodeDBSubnetGroupNotFoundFault.", field.M{"app": a.name, "name": a.dbSubnetGroup})
Copy link
Contributor

Choose a reason for hiding this comment

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

missing return?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, because we don't want to return in case its not found.

pkg/app/rds_postgres.go Outdated Show resolved Hide resolved
pkg/app/utils.go Outdated Show resolved Hide resolved
Base automatically changed from use_pod_rds_aurora to master March 17, 2023 05:06
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/utils.go Outdated Show resolved Hide resolved
pkg/app/utils.go Outdated Show resolved Hide resolved
Kanister automation moved this from In Progress to Review Required Mar 17, 2023
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
Kanister automation moved this from Review Required to Reviewer approved Mar 17, 2023
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
@mergify mergify bot merged commit d23ccdf into master Mar 17, 2023
Kanister automation moved this from Reviewer approved to Done Mar 17, 2023
@mergify mergify bot deleted the aws_rds_secure branch March 17, 2023 12:34
akankshakumari393 added a commit that referenced this pull request Mar 21, 2023
mergify bot pushed a commit that referenced this pull request Mar 21, 2023
akankshakumari393 added a commit that referenced this pull request Mar 28, 2023
mergify bot added a commit that referenced this pull request Mar 28, 2023
… RDS integration test (#1950)" (#1966)" (#1977)

This reverts commit f94584f.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
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