testsuite
testsuite copied to clipboard
[BUG] When volumes like configmaps, downwardAPI & emptyDir are mounted as volumes, they should be ignored during elastic volume checks
This issue surfaced after #1417 was resolved in a working branch.
Describe the bug
When volumes like configmaps, downwardAPI & emptyDir are mounted as volumes, they should be ignored during elastic volume checks.
The list of volume types in Kubernetes are available here. We should decide what volume types to ignore and what we should expect to be elastic to pass the test.
To Reproduce
- Checkout branch
1398-main - Install the CNF
sample_nonroot, which has no volumes defined in the manifest. - The
elastic_volumestest would fail. Expected result is skip.
Screenshots
For the sample-elastic-volume CNF, the volumes detected are in the screenshot
For the sample_nonroot CNF, the volumes detected are in the screenshot below
Removing the certification tag. Will prioritize this at a later time. For now updating the spec test to match the result. Added a todo note in part of the code to mention the unhandled scenario.
@HashNuke is still issue still relevant?