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
fix(controller): cascade-delete instances when agent is deleted (#116)
* fix(controller): cascade-delete instances when agent is deleted
Set an OwnerReference on each instance ConfigMap pointing to its agent
ConfigMap during reconciliation. Kubernetes garbage collection then
cascade-deletes instances automatically when the agent is removed.
Previously, deleting an agent left its instances orphaned — the
`humr.ai/agent` label pointed at a non-existent agent and the instance's
StatefulSet kept running.
Using owner references (instead of explicit cascade in the Delete
handler) means the cleanup works even when the controller is down, has
no race window against concurrent instance creation, and is visible via
`kubectl describe`. Existing instances pick up the owner reference on
their next reconcile (backfill is automatic).
PVC cleanup still fires via the informer's DeleteFunc → instanceReconciler.Delete().
Signed-off-by: Radek Ježek <radek.jezek@ibm.com>
* feat(ui): warn about instance data loss on agent delete
Show a formatted confirmation when deleting an agent that has instances,
highlighting the instance count and persistent data loss in danger red.
The warning is suppressed when the agent has no instances.
Widens the dialog's `message` field from `string` to `ReactNode` so
callers can use JSX for line breaks and bold highlights. Existing
string callers continue to work unchanged.
Signed-off-by: Radek Ježek <radek.jezek@ibm.com>
---------
Signed-off-by: Radek Ježek <radek.jezek@ibm.com>
0 commit comments