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

Pass Velero server command args to the plugins #8166

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

ywk253100
Copy link
Contributor

Pass Velero server command args to the plugins

Fixes #7806

Thank you for contributing to Velero!

Please add a summary of your change

Does your change fix a particular issue?

Fixes #(issue)

Please indicate you've done the following:

  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Created a changelog file or added /kind changelog-not-required as a comment on this pull request.
  • Updated the corresponding documentation in site/content/docs/main.

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

Attention: Patch coverage is 47.47475% with 104 lines in your changes missing coverage. Please review.

Project coverage is 59.10%. Comparing base (981f30c) to head (dc6eeaf).
Report is 27 commits behind head on main.

Files with missing lines Patch % Lines
pkg/cmd/server/server.go 9.70% 93 Missing ⚠️
pkg/plugin/framework/server.go 0.00% 5 Missing ⚠️
pkg/cmd/server/plugin/plugin.go 0.00% 3 Missing ⚠️
pkg/cmd/cli/nodeagent/server.go 0.00% 1 Missing ⚠️
...g/controller/backup_storage_location_controller.go 66.66% 1 Missing ⚠️
pkg/plugin/clientmgmt/process/process.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8166      +/-   ##
==========================================
+ Coverage   59.07%   59.10%   +0.03%     
==========================================
  Files         364      365       +1     
  Lines       30307    30336      +29     
==========================================
+ Hits        17904    17931      +27     
- Misses      10960    10962       +2     
  Partials     1443     1443              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package restore
package config
Copy link
Contributor

Choose a reason for hiding this comment

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

The priority.go doesn't depend on any package.
IMO, this file is better placed in the pkg/util directory.

// files will be written to
defaultCredentialsDirectory = "/tmp/credentials"

ControllerBackup = "backup"
Copy link
Contributor

Choose a reason for hiding this comment

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

We should consider decoupling the pkg/cmd and pkg/controller packages.
Maybe adding a pkg/types package to hold the common-used constant variables and structures can help to avoid packages importing each other.

Copy link
Collaborator

Choose a reason for hiding this comment

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

+1

@ywk253100
Copy link
Contributor Author

@sseago @shubham-pampattiwar Could you also take a look at this PR?

Pass Velero server command args to the plugins

Fixes vmware-tanzu#7806

Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
@ywk253100
Copy link
Contributor Author

@blackpiglet @shubham-pampattiwar Please take a look at this PR again.

@reasonerjt reasonerjt merged commit 7439db5 into vmware-tanzu:main Sep 6, 2024
44 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slow backup because of the little QPS and burst numbers
6 participants