3 Commits
Author SHA1 Message Date
Erfan YousefiandClaude Opus 4.8 e19cca315a feat(cluster): dynamic resource discovery + list/describe (Phase 4.1a)
First slice of readonly parity for arbitrary resources/CRDs (ROADMAP 4.1).
Hybrid design: keep the curated 24 kinds; add a dynamic path for any discovered
GVK. This commit lands the provider layer + a headless verification mode.

- ResourceProvider::discover -> all API resources on a context via kube::discovery
- ResourceProvider::list_dynamic -> bounded one-shot list of any resource as
  generic rows (namespace/name/age/best-effort status) via Api<DynamicObject>
- ResourceProvider::get_dynamic -> full manifest for describe
- DiscoveredResource / DynamicRow types (cluster module)
- hidden `--discover [--discover-resource <plural|kind>]` mode prints the catalog
  and optionally lists+describes one resource (verifies the path end-to-end)
- scripts/scale/crds.sh installs a sample CRD (widgets.demo.krust.io) + CRs

Verified against the kwok lab: discovered 68 resources incl. the CRD and core
kinds outside the curated set (endpoints, endpointslices); listed and described
the Widgets. The interactive UI (:api catalog + dynamic browse overlay) lands
next in 4.1a-2.

Validation: fmt, check, test (75 passed / 4 ignored), release build all green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 14:49:43 +02:00
Erfan YousefiandClaude Opus 4.8 e89ad214e4 test: add kwok scale lab for high-load validation
Local high-scale harness (scripts/scale/) using kwok to simulate large
clusters with near-zero compute: fake nodes report huge capacity and fake
pods reach Running instantly.

- up/down: create/delete the kwok cluster (docker runtime)
- load: 20 nodes, 20 namespaces, 10,000 pods (+ rs/svc/cm/secrets), tunable
  via KRUST_* env vars (total = NAMESPACES * DEPLOYS_PER_NS * REPLICAS)
- contexts: generate a 20-context kubeconfig (distinct default namespaces)
  to exercise multi-context / warm-context paths against one apiserver
- churn: rolling deployment restarts at a configurable rate
- gitignore the generated kubeconfig (embeds kwok cluster certs)

Used to capture the stable-release performance baselines.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 11:11:30 +02:00
Erfan Yousefi 08a75daf23 feat(release,ui): accelerate pulse rendering and automate Homebrew tap publishing
- add cached pulse metrics keyed by context/namespace/store revision to avoid recomputing heavy counts on every frame

- wire render loop to consume cached pulse metrics and invalidate only when underlying store revision changes

- add regression test for pulse cache reuse/invalidation behavior

- improve release workflow with manual dispatch support, deterministic tag/version resolution, checksum artifact generation, and idempotent release asset publishing

- add Homebrew tap sync workflow that generates and pushes Formula/krust.rb from release SHA256SUMS

- add formula generator script for macOS arm64/amd64 and linux amd64 release tarballs

- update README Homebrew install flow to short tap syntax and ignore .idea in repo
2026-03-08 12:46:13 +01:00