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 cccbab9 commit 5467bac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion images/agent/src/internal/controller/llvs/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"reflect"
"slices"
"time"

"github.com/deckhouse/sds-node-configurator/api/v1alpha1"
Expand Down Expand Up @@ -149,7 +150,9 @@ func (r *Reconciler) reconcileLLVSCreateFunc(
) (bool, error) {
if llvs.Status == nil {
// will be saved later
llvs.Finalizers = append(llvs.Finalizers, internal.SdsNodeConfiguratorFinalizer)
if !slices.Contains(llvs.Finalizers, internal.SdsNodeConfiguratorFinalizer) {
llvs.Finalizers = append(llvs.Finalizers, internal.SdsNodeConfiguratorFinalizer)
}

llvs.Status = &v1alpha1.LVMLogicalVolumeSnapshotStatus{
NodeName: lvg.Spec.Local.NodeName,
Expand Down

0 comments on commit 5467bac

Please sign in to comment.