-
Notifications
You must be signed in to change notification settings - Fork 2
fix(vmrestore): skip processing when snapshot secret name is empty #1624
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: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Daniil Loktev <[email protected]>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds an early check in the VM BDA watcher to skip processing snapshots without a populated secret name, preventing spurious errors during restore initialization. Sequence diagram for VM BDA watcher processing with secret name checksequenceDiagram
participant VM_BDA_Watcher
participant VM_Snapshot
participant Secret
VM_BDA_Watcher->>VM_Snapshot: Get Status.VirtualMachineSnapshotSecretName
alt Secret name is empty
VM_BDA_Watcher-->>VM_BDA_Watcher: Skip processing
else Secret name is populated
VM_BDA_Watcher->>Secret: Fetch Secret by name
Secret-->>VM_BDA_Watcher: Return Secret or error
end
Class diagram for VirtualMachineSnapshot status changeclassDiagram
class VirtualMachineSnapshot {
Status: VirtualMachineSnapshotStatus
}
class VirtualMachineSnapshotStatus {
VirtualMachineSnapshotSecretName: string
}
VirtualMachineSnapshot --> VirtualMachineSnapshotStatus: has
class VirtualMachineBlockDeviceAttachmentWatcher {
enqueueRequests(ctx, req)
}
VirtualMachineBlockDeviceAttachmentWatcher --> VirtualMachineSnapshot: reads Status.VirtualMachineSnapshotSecretName
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
|
Workflow has started. The target step completed with status: failure. |
Description
Fix
virtualMachineSnapshotSecret "" not founderrors by skipping VMBDA processing when the snapshot secret name hasn't been populated yet.Why do we need it, and what problem does it solve?
What is the expected result?
Checklist
Changelog entries