inspect_target duplicates resolve_service selector and ready-pod logic #9
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
carvers/silta#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
inspect_target's Service arm (src/k8s.rs:281) re-implements the selector-string build and ready-pod listing thatresolve_servicealready 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_serviceis missed ininspect_target, sosilta describeshows hints from a different pod than the onerun()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.