Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandr Stefurishin <[email protected]>
  • Loading branch information
Alexandr Stefurishin committed Nov 22, 2024
1 parent 40a36b9 commit cccbab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/agent/src/internal/controller/llvs/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (r *Reconciler) MaxConcurrentReconciles() int {

func (r *Reconciler) ShouldReconcileUpdate(_ *v1alpha1.LVMLogicalVolumeSnapshot, newObj *v1alpha1.LVMLogicalVolumeSnapshot) bool {
// to proceed with deletion when finalizers were updated
return newObj.Status.NodeName == r.cfg.NodeName && newObj.DeletionTimestamp != nil
return newObj.DeletionTimestamp != nil && newObj.Status != nil && newObj.Status.NodeName == r.cfg.NodeName
}

func (r *Reconciler) ShouldReconcileCreate(_ *v1alpha1.LVMLogicalVolumeSnapshot) bool {
Expand Down

0 comments on commit cccbab9

Please sign in to comment.