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

Include --annotations flag in backup and restore create commands #8354

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

alromeros
Copy link
Contributor

@alromeros alromeros commented Oct 28, 2024

Thank you for contributing to Velero!

Please add a summary of your change

This Pull Request implements a new --annotations flag in the backup and restore create commands.

This allows users to specify key-value pairs for annotations directly at the time of backup and restore creation, in the same way as the --labels flag.

Usage example:

velero backup create my-backup --include-namespaces default --annotations AnnMetadataBackup=true

For restore:

velero restore create my-restore --include-namespaces default --annotations AnnIgnoreChecks=true

Does your change fix a particular issue?

Fixes #8350

Please indicate you've done the following:

This commit implements a new --annotations flag in the backup and restore create commands.

This allows users to specify key-value pairs for annotations directly at the time of backup and restore creation, in the same way as the --labels flag.

Signed-off-by: Alvaro Romero <[email protected]>
Copy link

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.98%. Comparing base (8320df4) to head (e2839bb).
Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8354   +/-   ##
=======================================
  Coverage   58.97%   58.98%           
=======================================
  Files         367      367           
  Lines       38876    38881    +5     
=======================================
+ Hits        22928    22933    +5     
  Misses      14486    14486           
  Partials     1462     1462           

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

@reasonerjt reasonerjt merged commit d0cffa3 into vmware-tanzu:main Nov 5, 2024
48 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.

Backup: Add annotations via client
4 participants