Commit 47d005e
committed
fix: prevent CSI node from deleting DaemonSet mount pods
DaemonSet mount pods should be managed by the DaemonSet controller,
not deleted by the CSI node reconciler when they have no references.
The CSI node should only add/remove client references (connect/disconnect).
This fixes the recreation loop where CSI nodes were continuously trying
to delete DaemonSet pods that had no references, causing the reconciler
to report errors every 5 seconds.
Added isDaemonSetPod() helper to identify DaemonSet-managed pods by:
- Checking OwnerReferences for DaemonSet ownership
- Checking pod name pattern for "-mount-ds-" suffix (backward compatibility)1 parent e18b5a6 commit 47d005e
1 file changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
183 | 199 | | |
184 | 200 | | |
185 | 201 | | |
| |||
227 | 243 | | |
228 | 244 | | |
229 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
230 | 254 | | |
231 | 255 | | |
232 | 256 | | |
| |||
0 commit comments