Repository navigation
test(kyverno): cover batch workload admission - #6706
Conversation
The new adapter test failed on the old checker for both Job and CronJob with “unsupported fixture kind.” Both kinds passed positive and negative controls with the signed change, and the module tests and Go vet passed. I also rendered the Business Site production overlay with the logout settings and ran it against the signed Platform policies using this checker. The policy engine admitted the WebApp, migration Job and retention CronJob and refused one invalid control of each kind. This exercises the real policy engine offline. Business Site CI integration and generated-workload coverage remain tracked in devantler-tech/business-site#647. |
✅
|
✅
|
Code coverage overviewLanguages: Go Go / code-coverage/go
Line coverage data for the main branch is not yet available. View coverage of the 10 most covered files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
@coderabbitai review |
Action performed
|
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Medium Merge Risk:
|
The offline checker exercised the actual Business Site WebApp, migration Job and retention CronJob against the signed policies. It accepted each valid workload and denied each refusal control. The complete module tests and hosted required CI passed. CodeRabbit completed at this signed head with no actionable findings, and there are no open review threads. |

Why
The portal's migration and retention workloads are subject to cluster admission rules. The offline admission checker currently stops before it can test either workload.
What
Let the checker evaluate Jobs and CronJobs. The tests confirm that the policy engine admits valid batch workloads and rejects invalid ones.
Fixes #6705