mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
feat(analyze): optional additionalDeviceTypes for blockDevices; refactor match config and tests Allow preflights to count extra lsblk TYPE values (e.g. loop, lvm) by listing them in blockDevices.additionalDeviceTypes on BlockDevicesAnalyze. Types in this list are eligible whether or not includeUnmountedPartitions is set; disk and optional partitions behave as before. Refactor matching to use blockDevicesMatchConfig and document eligibility on that type. Add host_block_devices_match_test.go for type-rule tables and preflight-style integration cases; keep classic scenarios in host_block_devices_test.go with a shared analyzeHostBlockDevicesOutput helper. Regenerate CRDs and deepcopy for the new API field. Signed-off-by: Evans Mungai <evans@replicated.com>