-
Notifications
You must be signed in to change notification settings - Fork 386
feat: change status from optional to required #9234
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
base: master
Are you sure you want to change the base?
Conversation
5582547 to
c6adfc7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for the source code changes — just a small nit, thanks.
For the test plan, IMO, we might expand it to verify compatibility in the following areas:
-
VM Snapshot creation and restoration
-
Scheduled VM Backup creation and restoration
-
Cross-cluster VM Backup discovery between old and new Harvester versions:
- Cluster1 (v1.7) creates a new VM Backup → Cluster2 (v1.6) discovers and restores it
- Cluster2 (v1.6) creates a new VM Backup → Cluster1 (v1.7) discovers and restores it
| } | ||
|
|
||
| if restore.Status == nil { | ||
| if restore.Status.Complete == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider factoring this into a separate function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review. Addressed all comments.
| // We need to delete VolumeSnapshotContent by restore controller, or there will have remaining VolumeSnapshotContent in the system. | ||
| func (h *RestoreHandler) RestoreOnRemove(_ string, restore *harvesterv1.VirtualMachineRestore) (*harvesterv1.VirtualMachineRestore, error) { | ||
| if restore == nil || restore.Status == nil { | ||
| if restore == nil || restore.Status.Complete == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Signed-off-by: PoAn Yang <[email protected]>
Signed-off-by: PoAn Yang <[email protected]>
c6adfc7 to
51402a7
Compare
Signed-off-by: PoAn Yang <[email protected]>
51402a7 to
352af80
Compare
Problem:
Solution:
Related Issue(s):
#6126
Test plan:
New cluster
Upgrade path
Cross-cluster VM Backup discovery between old and new Harvester versions:
Additional documentation or context