Skip to content

Commit

Permalink
little fixes for update reconciliation
Browse files Browse the repository at this point in the history
Signed-off-by: Viktor Kramarenko <[email protected]>
  • Loading branch information
ViktorKram committed Feb 8, 2024
1 parent 66165b3 commit 5cb71be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/agent/pkg/controller/lvm_logical_volume_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func reconcileLLVUpdateFunc(
if err != nil {
log.Error(err, "[reconcileLLVUpdateFunc] unable to updateLVMLogicalVolumePhase")
}
log.Debug(fmt.Sprintf("[reconcileLLVUpdateFunc] updated LVMLogicaVolume %s status.phase to %s", llv.Name, pendingStatusPhase))
log.Debug(fmt.Sprintf("[reconcileLLVUpdateFunc] updated LVMLogicaVolume %s status.phase to %s", llv.Name, resizingStatusPhase))
log.Debug(fmt.Sprintf("[reconcileLLVUpdateFunc] the LVMLogicalVolume %s spec.thin.poolname: \"%s\"", llv.Name, llv.Spec.Thin.PoolName))

extendingSize, err := getExtendingSize(log, metrics, llv)
Expand Down Expand Up @@ -381,7 +381,7 @@ func shouldReconcileByUpdateFunc(log logger.Logger, llv *v1alpha1.LvmLogicalVolu
return false, nil
}

if llv.Status.Phase == pendingStatusPhase {
if llv.Status.Phase == pendingStatusPhase || llv.Status.Phase == resizingStatusPhase {
return false, nil
}

Expand Down

0 comments on commit 5cb71be

Please sign in to comment.