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

Document about item action plugin ordering. #6719

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

draghuram
Copy link
Contributor

Thank you for contributing to Velero!

Please add a summary of your change

Added clarification that item action plugins have no order. Please feel free to suggest changes.

Please indicate you've done the following:

  • [Yes ] 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.

@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Merging #6719 (59a666c) into main (0d4e61e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #6719   +/-   ##
=======================================
  Coverage   60.67%   60.67%           
=======================================
  Files         249      249           
  Lines       26476    26476           
=======================================
  Hits        16064    16064           
  Misses       9268     9268           
  Partials     1144     1144           

@draghuram
Copy link
Contributor Author

@sseago We discussed this doc change few weeks ago in the call and you suggested a change regarding plugins registered by the same binary. I made the change to include that case. Please take a look.

sseago
sseago previously approved these changes Oct 3, 2023
@@ -59,6 +59,11 @@ Velero supports the following kinds of plugins:
- **Restore Item Action** - executes arbitrary logic for individual items prior to restoring them into a cluster
- **Delete Item Action** - executes arbitrary logic based on individual items within a backup prior to deleting the backup

Plugin binaries are discovered by recursively reading a directory in no particular order. Hence no guarantee is provided for the
order in which item action plugins are invoked. How ever, if a single binary implements multiple item action plugins,
Copy link
Collaborator

Choose a reason for hiding this comment

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

s/How ever/However

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Made the change.

@@ -59,6 +59,11 @@ Velero supports the following kinds of plugins:
- **Restore Item Action** - executes arbitrary logic for individual items prior to restoring them into a cluster
- **Delete Item Action** - executes arbitrary logic based on individual items within a backup prior to deleting the backup

Plugin binaries are discovered by recursively reading a directory in no particular order. Hence no guarantee is provided for the
order in which item action plugins are invoked. How ever, if a single binary implements multiple item action plugins,
they may be invoked in the order in which they are registered but it is best not depend on this
Copy link
Collaborator

Choose a reason for hiding this comment

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

s/best not/best to not

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed it. Thanks.

Signed-off-by: Raghuram Devarakonda <draghuram@gmail.com>
@sseago sseago merged commit b7cc62d into vmware-tanzu:main Oct 6, 2023
7 of 8 checks passed
@draghuram draghuram deleted the plugin-order-doc branch October 7, 2023 15:15
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.

4 participants