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 kopia repository storage args generation utilities #1696

Merged
merged 23 commits into from
Dec 2, 2022

Conversation

ankitjain235
Copy link
Contributor

@ankitjain235 ankitjain235 commented Oct 21, 2022

Change Overview

This PR adds storage wrappers for generation arguments that will be used for repository commands.

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

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 Oct 21, 2022
pkg/kopia/command/storage/azure_args.go Show resolved Hide resolved
pkg/kopia/command/storage/azure_args.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/filesystem_args.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/s3_args.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/s3_args.go Show resolved Hide resolved
pkg/kopia/command/storage/s3_args.go Show resolved Hide resolved
pkg/kopia/command/storage/secret_utils.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/secret_utils.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/storage_args.go Outdated Show resolved Hide resolved
Base automatically changed from add-env-podoptions to master November 11, 2022 13:08
pkg/kopia/command/storage/azure_args.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/azure_args.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/azure_args.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/azure_args.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/azure_args_test.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/s3_args.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/s3_args.go Outdated Show resolved Hide resolved

// GetMapForLocationValues return a map with valid keys
// for different location values
func GetMapForLocationValues(
Copy link
Contributor

Choose a reason for hiding this comment

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

What did we decide about the validation of the location secret? Is that something we'll add to the repo server controller?
cc: @kale-amruta

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we keep them separate from these wrappers, at some higher level? We can avoid pod creation as well if validation fails.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, we should have some kinda validation definitely. Wanted to make sure we are aware of it 👍🏼

pkg/kopia/command/storage/utils.go Outdated Show resolved Hide resolved
pkg/kube/pod_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@pavannd1 pavannd1 left a comment

Choose a reason for hiding this comment

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

LGTM

Kanister automation moved this from In Progress to Reviewer approved Dec 1, 2022
@mergify mergify bot merged commit f65bc3c into master Dec 2, 2022
Kanister automation moved this from Reviewer approved to Done Dec 2, 2022
@mergify mergify bot deleted the repo-storage-wrappers branch December 2, 2022 05:04
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

5 participants