require-run-as-non-root: Testcase failt
Da failt ein Testcase, aber der Test selbst leider nicht:
$ kyverno test tests/policies/require-run-as-non-root/
Loading test ( tests/policies/require-run-as-non-root/kyverno-test.yaml ) ...
Loading values/variables ...
Loading policies ...
Loading resources ...
Applying 1 policy to 5 resources ...
Checking results ...
│────│─────────────────────────│─────────────────│────────────────────────────────────│────────│─────────────────────│
│ ID │ POLICY │ RULE │ RESOURCE │ RESULT │ REASON │
│────│─────────────────────────│─────────────────│────────────────────────────────────│────────│─────────────────────│
│ 1 │ require-run-as-non-root │ run-as-non-root │ Pod/require-run-as-non-root-good-1 │ Pass │ Ok │
│ 2 │ require-run-as-non-root │ run-as-non-root │ Pod/require-run-as-non-root-bad-1 │ Pass │ Ok │
│ 3 │ require-run-as-non-root │ run-as-non-root │ Pod/require-run-as-non-root-bad-2 │ Pass │ Want fail, got pass │
│ 4 │ require-run-as-non-root │ run-as-non-root │ Pod/require-run-as-non-root-bad-3 │ Pass │ Ok │
│────│─────────────────────────│─────────────────│────────────────────────────────────│────────│─────────────────────│
Test Summary: 4 tests passed and 0 tests failed
$
Scheint ein bekanntes Problem zu sein: [Bug] [CLI] False positive test results