-
Notifications
You must be signed in to change notification settings - Fork 3
fix(vmbda): consider ContainerDisk type in hot-plug validation #1581
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
Reviewer's guide (collapsed on small PRs)Reviewer's GuideEnhance the disk hot-plug validation logic to treat ContainerDisk volumes similarly to PersistentVolumeClaims, ensuring both presence checks and hotpluggable flag checks cover ContainerDisks. Class diagram for updated Volume hot-plug validationclassDiagram
class Volume {
+string Name
+PersistentVolumeClaim PersistentVolumeClaim
+ContainerDisk ContainerDisk
}
class PersistentVolumeClaim {
+bool Hotpluggable
}
class ContainerDisk {
+bool Hotpluggable
}
Volume --> PersistentVolumeClaim
Volume --> ContainerDisk
Flow diagram for disk hot-plug validation logic updateflowchart TD
A["Start hot-plug validation"] --> B["Find Volume by name"]
B --> C{"Volume has PersistentVolumeClaim or ContainerDisk?"}
C -- No --> D["Return error: no PVC or ContainerDisk reference"]
C -- Yes --> E{"Hotpluggable flag is true on PVC or ContainerDisk?"}
E -- No --> F["Return error: not a hot-plugged volume"]
E -- Yes --> G["Allow hot-plug"]
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: cancelled. |
Signed-off-by: Yaroslav Borbat <[email protected]>
b58ebd7
to
0c61faa
Compare
Workflow has started. The target step completed with status: failure. |
Description
Extend disk hot-plug validation to include ContainerDisk volumes alongside PersistentVolumeClaim.
Added checks for ContainerDisk presence and its Hotpluggable flag.
Why do we need it, and what problem does it solve?
What is the expected result?
Checklist
Changelog entries