We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6863cc2 commit 128de36Copy full SHA for 128de36
pkg/select/blockdevice/select.go
@@ -58,10 +58,12 @@ func (c *Config) getCandidateDevices(bdList *apis.BlockDeviceList) (*apis.BlockD
58
FilterBlockDeviceName,
59
)
60
} else {
61
+ if c.ClaimSpec.DeviceType != "sparse" {
62
+ // Unless explicitly specify DeviceType as sparse, device sparse will not be included
63
+ filterKeys = append(filterKeys, FilterOutSparseBlockDevices)
64
+ }
65
+
66
filterKeys = append(filterKeys,
- // Sparse BDs can be claimed only by manual selection. Therefore, all
- // sparse BDs will be filtered out in auto mode
- FilterOutSparseBlockDevices,
67
FilterDeviceType,
68
FilterVolumeMode,
69
FilterNodeName,
0 commit comments