Skip to content

Commit

Permalink
fix(volume-eviction-controller): skip handling detached volume
Browse files Browse the repository at this point in the history
longhorn/longhorn-9781

Signed-off-by: Chin-Ya Huang <[email protected]>
  • Loading branch information
c3y1huang committed Nov 14, 2024
1 parent 470b53c commit 886fb3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controller/volume_eviction_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ func (vec *VolumeEvictionController) reconcile(volName string) (err error) {
return nil
}

if vol.Spec.NodeID == "" {
return nil
}

if !vec.isResponsibleFor(vol) {
return nil
}
Expand Down

0 comments on commit 886fb3b

Please sign in to comment.