feat: create allow-list for filtering down devices to only a subset #686
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm trying to run Scrutiny in Kubernetes. My storage solution involves Longhorn. This means that not all drives are "real" so to speak, some of them are mounted due the fact that a certain pod is present on a host. These pods can move about, which means that disks can come and go.
In the above screen shotshot, only sda/sdb/sdc are real physical disks that are plugged into the system, sdd/sde are the result of pods. I would list scrutiny to only bother monitoring the "real" disks, thus an allow list to specify which ones. I cannot use the existing
devices
keyword, because as pods move around I could get more disks than what I have excluded, it would be an endless game of whack-a-mole to exclude the fake disks.Thus, PR.