Skip to content

Commit

Permalink
ignore owner when change disk status
Browse files Browse the repository at this point in the history
  • Loading branch information
mingming.zhou committed Mar 9, 2023
1 parent 269e3ab commit 48da680
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ func (r *ReconcileLocalDisk) processDiskAvailable(disk *v1alpha1.LocalDisk) erro
logCtx := log.Fields{"name": disk.Name}
log.WithFields(logCtx).Info("Start to processing Available localdisk")

// Update disk status if found partition or filesystem or diskRed or owner on it
if disk.Spec.HasPartition || disk.Spec.ClaimRef != nil || disk.Spec.Owner != "" {
// Update disk status if found partition or filesystem or diskRed on it
if disk.Spec.HasPartition || disk.Spec.ClaimRef != nil {
return r.updateDiskStatusBound(disk)
}

Expand Down

0 comments on commit 48da680

Please sign in to comment.