Commit 09ffb5e
fix(controller): Skip resolution when ClusterExtension is being deleted
Move the deletion timestamp check to occur immediately after finalizer
error handling in the reconcile loop. This ensures that resolution,
unpacking, and installation are skipped entirely when a ClusterExtension
is being deleted, regardless of whether finalizers have been updated.
This fixes OCPBUGS-62942 where ClusterExtensions could not be deleted
after enabling the BoxcutterRuntime feature gate, because the controller
would attempt to resolve bundles even during deletion. If the original
catalog was no longer available (deleted or cache cleared), this would
fail with "cache for catalog not found" error and prevent deletion.
The fix ensures that when a ClusterExtension has a deletion timestamp,
the reconcile loop returns early without attempting any resolution or
installation operations.
Fixes: OCPBUGS-62942
🤖 Generated with [Claude Code](https://claude.com/claude-code) via /jira:solve OCPBUGS-62942 origin
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Todd Short <tshort@redhat.com>1 parent 7fe0769 commit 09ffb5e
1 file changed
Lines changed: 13 additions & 8 deletions
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
195 | 202 | | |
196 | 203 | | |
197 | 204 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
203 | 208 | | |
204 | 209 | | |
205 | 210 | | |
| |||
0 commit comments