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

Allow updated resource version #6499

Merged
merged 1 commit into from
Aug 10, 2023
Merged

Conversation

danielkucera
Copy link
Contributor

@danielkucera danielkucera commented Jul 14, 2023

Thank you for contributing to Velero!

Please add a summary of your change

This change will allow changing the object apiVersion using a plugin

Does your change fix a particular issue?

Fixes #6498

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.

@danielkucera
Copy link
Contributor Author

/kind changelog-not-required

@github-actions github-actions bot added the kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes label Jul 14, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jul 18, 2023

Codecov Report

Merging #6499 (575a4ac) into main (f234dd6) will decrease coverage by 0.01%.
The diff coverage is 20.00%.

@@            Coverage Diff             @@
##             main    #6499      +/-   ##
==========================================
- Coverage   60.28%   60.27%   -0.01%     
==========================================
  Files         238      238              
  Lines       25256    25261       +5     
==========================================
+ Hits        15226    15227       +1     
- Misses       8976     8979       +3     
- Partials     1054     1055       +1     
Impacted Files Coverage Δ
pkg/restore/restore.go 64.29% <20.00%> (-0.15%) ⬇️

@qiuming-best qiuming-best requested a review from sseago July 18, 2023 13:30
Copy link
Collaborator

@sseago sseago left a comment

Choose a reason for hiding this comment

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

Looks good, but a minor request -- add a comment above the new getResourceClient call giving the reason for grabbing it again, otherwise someone reading through this later may not realize that the reason for calling it a second time is that the version of obj may have changed during plugin calls.

@danielkucera danielkucera requested a review from sseago July 19, 2023 08:29
Signed-off-by: Daniel Kucera <[email protected]>
@danielkucera
Copy link
Contributor Author

@sseago , please check updated revision. Thank you.

@ywk253100 ywk253100 merged commit 0ec0c96 into vmware-tanzu:main Aug 10, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restore plugin for changing apiversion doesn't work
5 participants