* feat(ui): per-kind table columns for non-pod resources
Non-pod views collapsed every resource to a single loose "Summary" string
(label count / service type / "-"). Replace it with meaningful, fixed-width,
kubectl-style columns per kind, rendered after the universal
Namespace/Name/Status/Age:
- deploy UP-TO-DATE/AVAILABLE, rs DESIRED/CURRENT/READY, sts READY,
ds DESIRED/READY/AVAIL
- svc TYPE/CLUSTER-IP/PORTS, ing CLASS/HOSTS/ADDRESS
- job COMPLETIONS/DURATION, cronjob SCHEDULE/SUSPEND/ACTIVE
- cm DATA, secret TYPE/DATA, sa SECRETS
- node ROLES/VERSION
- pvc VOLUME/CAPACITY/ACCESS/STORAGECLASS, pv adds RECLAIM/CLAIM
- hpa REFERENCE/MINPODS/MAXPODS/REPLICAS, pdb MIN-AVAIL/MAX-UNAVAIL/ALLOWED
ResourceKind::extra_columns() is the single source of truth for header labels
and widths; extract_columns() in the provider emits the matching row values.
A contract test asserts the two stay in lockstep for all 24 kinds.
Entity model: summary: String -> columns: Vec<String>. Pods now carry an empty
vec, dropping the previously-unused per-pod "node=" string on the 10k-pod hot
path. Filtering and :dump/copy span all columns; kinds without distinctive
columns render just the four universal ones.
Tests: contract count check, deployment/service/pvc extraction, non-pod render
snapshot (kind headers replace generic Summary).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(ui): richer ServiceAccount and RoleBinding columns
ServiceAccounts showed only a SECRETS count (often 0 on k8s ≥1.24);
RoleBindings/ClusterRoleBindings had no kind-specific columns at all (empty
fallback). Add meaningful columns:
- ServiceAccounts: SECRETS, PULL-SECRETS (imagePullSecrets count)
- RoleBindings / ClusterRoleBindings: ROLE (roleRef kind/name, e.g.
ClusterRole/view) and SUBJECTS (abbreviated kind:name list, e.g.
sa:build,u:alice)
Test: rolebinding role/subjects extraction; the all-kinds column-count
contract test covers the new headers.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>