You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add dynamic BackingType detection via VirtualDiskManager
When the disk-backing annotation is not present on a PVC, dynamically
query the backing type from vSphere VirtualDiskManager API and cache
it on the PVC annotation for future attach operations.
Changes:
- Add queryBackingTypeFromVirtualDiskInfo() to query disk type via
CNS QueryVolume API and VirtualDiskManager.QueryVirtualDiskInfo()
- Add convertDiskTypeToBackingType() to map vSphere disk types
(thin, preallocated, eagerZeroedThick, etc.) to backing types
- Add patchPVCBackingTypeAnnotation() to persist queried backing type
on PVC annotation for caching
- Update constructBatchAttachRequest() to query and cache backing type
when annotation is missing
- Add unit tests for convertDiskTypeToBackingType and
patchPVCBackingTypeAnnotation functions
0 commit comments