Skip to content

feat(ui): add aggregated Policies page - #664

Open
yupanzi wants to merge 1 commit into
kite-org:mainfrom
yupanzi:feature/policies-page
Open

feat(ui): add aggregated Policies page#664
yupanzi wants to merge 1 commit into
kite-org:mainfrom
yupanzi:feature/policies-page

Conversation

@yupanzi

@yupanzi yupanzi commented Jul 30, 2026

Copy link
Copy Markdown

Summary

Add a cluster-scoped aggregated Policies page:

  • Aggregates all six admission-policy types (validating/mutating admission policies, their bindings, webhook configurations) into one list with a kind filter, search, and a partial-error notice when some types fail to load (e.g. the API group is not enabled on the cluster).
  • The catalog entry is marked synthetic: it is a frontend aggregation, not a real API resource. The individual policy types lose their sidebar entries in favor of the aggregated page but keep their routes and detail pages.
  • rbac-dialog excludes synthetic entries from resource suggestions since they cannot be RBAC targets.

Frontend-only; no backend changes.

Why

The admission-policy resources each had their own hidden-by-default sidebar entry, so getting an overview of what admission control is active in a cluster meant visiting six separate lists.

Related issue

Closes #669

Validation

  • pnpm run type-check && pnpm run lint && pnpm run test
  • Verified against a cluster with and without the ValidatingAdmissionPolicy API group enabled (partial-error path)

Checklist

  • I reviewed this PR myself before requesting review.
  • I understand the changes, including AI-generated parts (if any).
  • For new features, a feature request issue is linked.
  • I cleaned up AI noise (unnecessary comments, dead code, and unrelated changes).
  • This PR is reasonably scoped (or split into smaller PRs).

馃 Generated with Claude Code

Add a synthetic 'policies' catalog entry that aggregates the admission
policy resources (validating/mutating admission policies, their bindings,
and webhook configurations) into one cluster-scoped list:

- policies-list-page: kind filter, search, per-type partial-error notice
- catalog: mark the entry synthetic; surface it in the sidebar instead of
  the individual policy types
- rbac-dialog: exclude synthetic catalog entries from resource
  suggestions since they are not real API resources

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

Aggregated overview page for admission policy resources

1 participant