Closed ConnorJC3 closed 2 days ago
This PR does not change the code coverage
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: AndrewSirenko
The full list of commands accepted by this bot can be found here.
The pull request process is described here
What type of PR is this?
/kind bug
What is this PR about? / Why do we need it?
Fixes #2232
Instead of using only the kubelet path as a prefix, we should drill down specifically on where EBS CSI volumes are mounted so that nvme volumes from other drivers are not considered.
Also, normalizes the prefix in
NewNVMECollector
so that bothkubeletPath
with and without a trailing slash are accepted.How was this change tested?
Manually tested + unit test changed + CI
Does this PR introduce a user-facing change?