Commit 31bf725
fix: reclaim jobs are created for pvs in deletion phase
The PersistentVolumeClaimReconciler invoked processReclaimSpace even
when PVCs were already in the deletion phase. This behavior triggered
the creation of reclaim jobs that prevented the underlying volume from
being deleted. Similarly, the ReclaimSpaceCronJobReconciler created
ReclaimSpaceJobs for ReclaimSpaceCronJobs in the deletion phase. When
managed by a GitOps operator, this resulted in an infinite loop of job
creation and deletion.
The same behavior was also observed for EncryptionKeyRotationCronJobs.
This was also fixed as part of this commit.
Signed-off-by: Ivan Hell <ivan.hell@solunio.com>1 parent 46527df commit 31bf725
File tree
3 files changed
+19
-0
lines changed- internal/controller/csiaddons
3 files changed
+19
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
121 | 128 | | |
122 | 129 | | |
123 | 130 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
| |||
0 commit comments