ErfanandClaude Opus 4.8 3b0992bc36 feat(ui): Enter drill-down from owners to their pods (#21)
* feat(ui): Enter drill-down from owners to their pods

Enter on a Deployment/ReplicaSet/StatefulSet/DaemonSet now opens a Pods view
scoped to that owner's pods; Enter on a Node shows the pods scheduled on it.
Closes the top gap from the k9s readonly parity audit (4.7).

- Live filter, not a snapshot: a DrillFilter on ViewRequest is applied in the
  projector, so rollouts/new pods appear/disappear in real time. Deployment
  ownership is resolved transitively through the pod's ReplicaSet (reusing the
  owner chain the log fan-in relies on); other workloads and Node match directly
  (ownerReferences / scheduled node).
- The Pods title shows `[DRILL] <owner> → Pods`; `esc` pops back to the owner's
  list (krust has no view stack). Drill clears on any kind/namespace change.
- Leaf kinds keep the previous behavior (Enter → describe; namespace → its
  resources).

svc→endpoints drill deferred (needs the service selector, not currently
extracted) — noted in the audit/ROADMAP.

Tests: projector owner-chain/node filtering, and an Enter→drill render
integration test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ui): resolve deployment drill-down showing zero pods

The deployment→pod chain resolves transitively through each pod's ReplicaSet,
but ReplicaSets were only watched in the Logs pane — during a drill the active
kind is Pods (Table pane), so the RS were never loaded and every pod was
filtered out (zero pods).

Two-part fix:
- Watch ReplicaSets for the drilled namespace while a Deployment drill is active,
  so the chain resolves authoritatively from store state.
- Add a name-convention fallback in DrillFilter: a deployment's RS is always
  named `<deploy>-<pod-template-hash>` (hash has no `-`), so pods match
  immediately even before the RS watch populates or if RS are RBAC-denied. The
  no-`-` check keeps `web` from matching `web-api`'s ReplicaSets.

Test: projector deployment drill now covers a pod whose RS is absent from the
store (name-fallback path).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 17:47:08 +02:00
2026-06-25 11:37:40 +00:00
2026-06-25 11:37:40 +00:00

krust

CI Release License: MIT Kubernetes 1.33+

krust is a latency-first Kubernetes terminal navigator for operators managing many clusters and high resource volume.

It focuses on fast navigation, inspect, logs, and safe actions, with high k9s command/keybinding compatibility for Kubernetes-native workflows.

Goal and Approach

Goal:

  • stay responsive for power users across many contexts and large object sets
  • provide Kubernetes-native terminal workflows without plugin complexity

Approach:

  • lazy scope activation instead of watch-everything startup
  • bounded state/update pipelines to avoid UI jitter under churn
  • keyboard-first interaction with high k9s compatibility
  • explicit RBAC/auth error handling and guarded mutation paths

Install

Homebrew

brew tap ErfanY/krust
brew install krust

Prebuilt binaries

curl -L -o krust.tar.gz \
  https://github.com/ErfanY/krust/releases/latest/download/krust-x86_64-unknown-linux-gnu.tar.gz

tar -xzf krust.tar.gz
sudo install krust-x86_64-unknown-linux-gnu/krust /usr/local/bin/krust

From source

cargo install --git https://github.com/ErfanY/krust.git --locked krust

For local development, make (no args) lists targets; make validate runs the full CI gate (fmt/check/test/release build) and make package builds a release tarball.

Quick Start

krust
krust --context <context-name>
krust --namespace <namespace>
krust --readonly

Compatibility

  • OS: macOS, Linux
  • Kubernetes: 1.33+
  • Auth: kubeconfig + exec auth providers

Documentation

Scope

Available now:

  • Multi-context workflow with fast context switching and namespace scoping (all namespace supported)
  • Kubernetes resource browser for curated kinds: pods, deployments, replicasets, statefulsets, daemonsets, services, ingresses, configmaps, secrets, jobs, cronjobs, pvc/pv, nodes, namespaces, events, serviceaccounts, roles/rolebindings/clusterroles/clusterrolebindings, networkpolicies, hpa, pdb
  • Dynamic discovery: list and describe any other resource or CRD on the cluster (read-only) via :api and :<resource>
  • Describe/detail pane with YAML/JSON toggle, syntax highlighting, vim-style search, and wrap/horizontal scroll modes
  • Logs pane with stream, tail, pause, source filtering, container selection, and multi-pod fan-in for deployment/replicaset views
  • Secret decode view in YAML, with edit/apply support and automatic re-encode on apply
  • Guarded mutation flows (for example delete) plus read-only mode (--readonly)
  • k9s-style command and keybinding compatibility for Kubernetes-native workflows (plugin commands excluded)
  • Performance-oriented behavior for large clusters: lazy watch activation, bounded update pipelines, render invalidation, and RBAC-aware watch suppression

Explicitly out of scope:

  • Plugin subsystem
  • Non-Kubernetes plugin commands

License

MIT. See LICENSE.

S
Description
Kubernetes Client in Rust
Readme MIT
505 KiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 97%
Shell 2.2%
Makefile 0.8%