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

Move kopia storage consts to a secrets package #2059

Merged
merged 9 commits into from
May 30, 2023

Conversation

kale-amruta
Copy link
Contributor

@kale-amruta kale-amruta commented May 11, 2023

Change Overview

Move the kopia location secret consts to secrets package so that they can be reused. We cannot use the consts from storage package in secrets since it creates cyclic dependency. Hence moving it to secrets package. This PR would be the base PR for validation of kopia repository server secrets PR - #1940

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 May 11, 2023
@kale-amruta kale-amruta changed the title move the consts to a secrets package so that they can be reused Move kopia storage consts to a secrets package so that they can be reused May 11, 2023
@kale-amruta kale-amruta requested a review from pavannd1 May 11, 2023 09:41
@kale-amruta kale-amruta changed the title Move kopia storage consts to a secrets package so that they can be reused Move kopia storage consts to a secrets package May 11, 2023
Copy link
Contributor

@ankitjain235 ankitjain235 left a comment

Choose a reason for hiding this comment

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

LGTM, but this PR does not seem to handle refactor for other constants. Would there be a separate PR for these? Respective comment: #1940 (comment)

pkg/kopia/command/storage/azure_args_test.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/filesystem_args_test.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/s3_args_test.go Outdated Show resolved Hide resolved
pkg/kopia/command/storage/storage_args_test.go Outdated Show resolved Hide resolved
pkg/secrets/repositoryserver/const.go Outdated Show resolved Hide resolved
Kanister automation moved this from In Progress to Reviewer approved May 29, 2023
@mergify mergify bot merged commit 6169a0f into master May 30, 2023
14 checks passed
Kanister automation moved this from Reviewer approved to Done May 30, 2023
@mergify mergify bot deleted the refactoringKopiaConstants branch May 30, 2023 06:55
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

4 participants