Files
kubernetes/pkg/volume
Baptiste Girard-Carrabin a375b0aa36 Ensure CSINode belongs to current node on init
When a CSI plugin attempts to register on a node, the node checks if the CSINode object exists. If it does but the ownerReference of the CSINode does not match the UID of the current node, possibly because the node object was recreated with the same name, we end up in a race condition where the CSINode object will be updated but subsequently deleted by the GC controller.
In this situation, the CSINode object will be gone and won't be recreated unless the CSI plugin or the kubelet are restarted.
This commit fixes this race by checking that the CSINode object belong to the current node during initialization.
If it doesn't, it means that the CSINode object is left over from a previous node and it must be removed first. Once removed, registration can progress as usual.
2025-07-17 21:10:05 +02:00
..
2025-01-16 06:13:49 +00:00
2024-12-02 16:59:34 +01:00
2024-12-02 16:59:34 +01:00
2024-12-02 16:59:34 +01:00
2024-11-29 17:11:00 +08:00
2025-02-24 16:16:05 -05:00
2025-02-24 16:16:05 -05:00