You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deleting an agent's Sandbox/Deployment without its AgentRuntime CR leaves the operator in a reconcile error loop #2490
If you delete an agent's/tool's child workload (the Sandbox for agents, Deployment for tools) but leave the parent AgentRuntime CR, the operator enters a continuous reconcile error loop, logging every ~30s:
Failed to resolve targetRef ... AgentRuntime weather-service ...
error: agents.x-k8s.io/v1alpha1/Sandbox weather-service not found in namespace team1
Failed to resolve targetRef ... AgentRuntime weather-tool ...
error: apps/v1/Deployment weather-tool not found in namespace team1
The AgentRuntime's status still reports stale Ready: True from before, while its live condition is TargetResolved: False / TargetNotFound.
Why this bites users
The natural cleanup instinct (and some docs) is kubectl delete deployment,svc,sa -l .... For agents that's doubly wrong: the agent is a Sandbox, not a Deployment (so the delete misses it), and even when children are removed, the orphaned AgentRuntime keeps looping. In our run the loop appeared to interfere with subsequent operations in the namespace.
Expected / suggestions
Deleting the child workload could either be blocked (owner reference / finalizer) or the operator should treat a missing target for a still-present AgentRuntime as a non-error state (e.g. recreate, or set a clear Degraded condition and back off) rather than logging a stacktrace every 30s.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If this issue is still relevant, please comment or remove the stale label.
Activity
github-actions commentedon Oct 28, 2026
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If this issue is still relevant, please comment or remove the stale label.
github-actions commentedon Nov 11, 2026
This issue was closed because it has been stale for 14 days with no activity. Feel free to reopen if this is still relevant.