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]>
(cherry picked from commit 19c1f06)
  • Loading branch information
c3y1huang authored and derekbit committed Nov 15, 2024
1 parent 8fa8bcf commit 7bb340c
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 7bb340c

Please sign in to comment.