Skip to content

kyverno: include v2 reports in aggregate views - #1149

Open
nyxsky404 wants to merge 1 commit into
headlamp-k8s:mainfrom
nyxsky404:agent/kyverno-v2-report-aggregates
Open

kyverno: include v2 reports in aggregate views#1149
nyxsky404 wants to merge 1 commit into
headlamp-k8s:mainfrom
nyxsky404:agent/kyverno-v2-report-aggregates

Conversation

@nyxsky404

@nyxsky404 nyxsky404 commented Aug 12, 2026

Copy link
Copy Markdown

Summary

  • add a shared Kyverno report-source hook for PolicyReport, ClusterPolicyReport, EphemeralReport, and ClusterEphemeralReport
  • switch Overview, Violations, ComplianceBadge, usePolicyResultCounts, and PolicyViewer to read the shared normalized source list
  • allow aggregate report routes/actions when any supported report source exists, and bucket namespaced v2 report results by report namespace
  • add regression tests for source merging and namespaced v2 report bucketing

Fixes #1135

Validation

  • npx -y node@22 node_modules/.bin/headlamp-plugin lint
  • npx -y node@22 node_modules/.bin/headlamp-plugin tsc
  • npx -y node@22 node_modules/.bin/headlamp-plugin test
  • npx -y node@22 node_modules/.bin/headlamp-plugin build
  • Live Headlamp check on kind-lfx-headlamp with a temporary EphemeralReport: Violations showed Violations (4), Overview showed Fail: 4, the compliance badge showed 4, the matching policy row showed 1 / 1 failed, and PolicyViewer showed Associated Report Results (1).

@nyxsky404
nyxsky404 marked this pull request as ready for review August 12, 2026 20:05
Signed-off-by: Sumit Kumar <sumit76231@gmail.com>
@nyxsky404
nyxsky404 force-pushed the agent/kyverno-v2-report-aggregates branch from f6e61de to 50dac75 Compare August 14, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kyverno: v2 report violations are omitted from aggregate views

1 participant