testsuite icon indicating copy to clipboard operation
testsuite copied to clipboard

[BUG] When volumes like configmaps, downwardAPI & emptyDir are mounted as volumes, they should be ignored during elastic volume checks

Open HashNuke opened this issue 3 years ago • 1 comments

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

  1. Checkout branch 1398-main
  2. Install the CNF sample_nonroot, which has no volumes defined in the manifest.
  3. The elastic_volumes test would fail. Expected result is skip.

Screenshots

For the sample-elastic-volume CNF, the volumes detected are in the screenshot

CleanShot 2022-05-02 at 18 18 06@2x

For the sample_nonroot CNF, the volumes detected are in the screenshot below

CleanShot 2022-05-02 at 18 26 25@2x

HashNuke avatar May 02 '22 13:05 HashNuke

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 avatar May 04 '22 02:05 HashNuke

@HashNuke is still issue still relevant?

lixuna avatar Feb 21 '24 18:02 lixuna