-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
RestoreItemAction v2 API #5063
Comments
I am wondering what RestoreController will do after it gets the return value of AreAdditionalItemsReady as false. Possibly, the RestoreController needs to wait for some arbitrary time? If so, this is not so efficient and not generic enough to fit all cases, right? If so, why don't we have the restore of the additional items work in a check-wait-return manner, because:
Of course, the current restore needs to tell the restore of an additional item that - I want to wait your readiness. This could be set by the RestoreItemAction. As far as my understanding, this problem comes down to a resource dependency problem. In future, we may be able to build an ultimate solution like this (the suggestions above could be reused and take into the ultimate solution):
|
See the referenced design doc, but the idea is to call the
Note that your suggestion here is also already in the approved/reviewed design doc referenced above. I didn't mention that in the description of this issue, although perhaps I should have, since adding an optional field to that return struct doesn't really require API versioning like the new method does -- we have added optional fields to this struct in the past with no effect on backwards compatibility. |
Need to also consider Item Action progress #5108 in RIA v2. |
Per discussion, we will combine the effort to support progress monitoring in RIA v2, and we'll make sure #5108 is approved and provide the RIA v2 after v1.10 |
As noted in the comment above, this also includes the API changes needed by the item action progress monitoring design. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This isn't stale -- we already have a PR opened to implement this. |
Describe the problem/challenge you have
the RestoreItemAction plugin interface needs a method to query the plugin as to whether the returned additionalItems are created and ready (since for some controllers, if ObjectReferences in item spec aren't available at create time, creation errors out)
See #1350 for a discussion of the problem hit and https://github.com/vmware-tanzu/velero/blob/main/design/wait-for-additional-items.md for the feature design, in particular note the new method desired in the RestoreItemAction interface.
Describe the solution you'd like
RestoreItemAction v2 interfae needs the following:
Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: