inspect_target duplicates resolve_service selector and ready-pod logic #9

Closed
opened 2026-08-11 10:25:49 +00:00 by aav · 0 comments
Owner

inspect_target's Service arm (src/k8s.rs:281) re-implements the selector-string build and ready-pod listing that resolve_service already has (src/k8s.rs:332-347).

Failure scenario: two copies of the selector formatting and pod-picking logic drift. A fix to selector escaping or Ready-pod selection applied to resolve_service is missed in inspect_target, so silta describe shows hints from a different pod than the one run() would actually forward to.

Fix direction: extract the shared selector-build + ready-pod-pick into a helper both call.

Source: high-effort code review, CONFIRMED. Area: k8s.

`inspect_target`'s Service arm (src/k8s.rs:281) re-implements the selector-string build and ready-pod listing that `resolve_service` already has (src/k8s.rs:332-347). **Failure scenario:** two copies of the selector formatting and pod-picking logic drift. A fix to selector escaping or Ready-pod selection applied to `resolve_service` is missed in `inspect_target`, so `silta describe` shows hints from a different pod than the one `run()` would actually forward to. **Fix direction:** extract the shared selector-build + ready-pod-pick into a helper both call. Source: high-effort code review, CONFIRMED. Area: k8s.
aav self-assigned this 2026-08-11 10:27:24 +00:00
aav closed this issue 2026-08-11 11:10:38 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
carvers/silta#9
No description provided.