mirror of
https://github.com/siderolabs/omni.git
synced 2026-03-29 12:41:03 +02:00
Add a cleanup controller that removes the identity last active resource when its corresponding identity is destroyed. This covers all identity types uniformly: users, service accounts, and infra providers. Previously, users and service accounts had manual cleanup in their destroy paths, but infra providers did not, leaving orphaned resources. Remove the manual cleanup from user and service account destruction, as the controller now handles it. Add a migration to remove any already-orphaned identity last active resources that have no matching identity. Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>