diff options
| author | chrislusf <chris.lu@gmail.com> | 2025-12-03 19:42:31 -0800 |
|---|---|---|
| committer | Chris Lu <chrislusf@users.noreply.github.com> | 2025-12-03 20:52:27 -0800 |
| commit | d432e63322e0237f2f5ced3580f6233f401e9e48 (patch) | |
| tree | 4287add8705e443840cddd7bb9b7ca24fae5605a /pkg/driver/volume.go | |
| parent | dfad8b9747b114c863838cf48223fcebe3049890 (diff) | |
| download | seaweedfs-csi-driver-d432e63322e0237f2f5ced3580f6233f401e9e48.tar.xz seaweedfs-csi-driver-d432e63322e0237f2f5ced3580f6233f401e9e48.zip | |
fix: preserve healthy mounts in NodeStageVolume instead of re-staging
Address CodeRabbit review - when a healthy staging path exists after driver
restart, rebuild the cache using rebuildVolumeFromStaging() instead of
cleaning up and re-staging. This:
- Maintains consistency with NodePublishVolume behavior
- Avoids disrupting existing published volumes that are bind-mounted
- Makes NodeStageVolume idempotent as per CSI spec
Diffstat (limited to 'pkg/driver/volume.go')
0 files changed, 0 insertions, 0 deletions
