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: scope SpinAppExecutor finalizer check to executor's namespace
The handleDeletion() method lists dependent SpinApps by executor name
across all namespaces. This causes a SpinApp in namespace B to block
deletion of an unrelated SpinAppExecutor with the same name in
namespace A — even though there are zero SpinApps in namespace A.
This is particularly impactful because the common pattern (and the Helm
chart bootstrap hook) uses the same executor name "containerd-shim-spin"
in every namespace. All executors with that name become cross-coupled.
The fix adds client.InNamespace(executor.Namespace) to scope the
dependent SpinApp lookup to the executor's own namespace.
Includes a regression test that creates same-named executors in two
namespaces with a SpinApp only in one, then verifies deleting the
executor in the other namespace succeeds.
Fixes#480
0 commit comments