Commit 0110ff9
committed
operator: Move AllZero check after StatefulSet deletion during teardown
When a StretchCluster was being torn down, the AllZero() early return
at the top of reconcileDecommission exited before reaching the
ToDelete() loop. StatefulSets with zero replicas were never deleted,
which blocked their owning NodePool custom resources from being
garbage collected.
Move the AllZero check after the scale-down and StatefulSet deletion
logic so that zero-replica sets are cleaned up before the function
returns.1 parent 4eee6bf commit 0110ff9
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| |||
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| 232 | + | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
| |||
0 commit comments