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 conversion from s3Compliant type to s3 type #1883

Merged
merged 4 commits into from
Mar 13, 2023

Conversation

ankitjain235
Copy link
Contributor

Change Overview

This PR adds conversion from s3Compliant type to s3. For cases with kanister profiles, the profile type is still "s3Compliant". Since for kopia, the s3Compliant type is same as s3, this PR adds the necessary conversion in the utility.

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 Feb 2, 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 Feb 2, 2023
Comment on lines +187 to +189
if locType == LocType(v1alpha1.LocationTypeS3Compliant) {
m[typeKey] = []byte(LocTypeS3)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

what is the value of locType in case of the if statement? is it not LocTypeS3 already?

LGTM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For Kanister profiles, it's s3Compliant while we have s3 as value of LocTypeS3.

Kanister automation moved this from In Progress to Reviewer approved Feb 7, 2023
@mergify mergify bot merged commit b319c70 into master Mar 13, 2023
Kanister automation moved this from Reviewer approved to Done Mar 13, 2023
@mergify mergify bot deleted the add-s3Compliant-type-conversion branch March 13, 2023 13:09
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