Skip to content

Commit

Permalink
add block
Browse files Browse the repository at this point in the history
  • Loading branch information
bdevcich committed Nov 13, 2024
1 parent f3983e8 commit 98157b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/controller/nnf_storage_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,10 @@ func (r *NnfStorageReconciler) teardownStorage(ctx context.Context, storage *nnf
return nodeStoragesExist, err
}

if !ost0DeleteStatus.Complete() {
return nodeStoragesExist, nil
}

ostDeleteStatus, err := dwsv1alpha2.DeleteChildrenWithLabels(ctx, r.Client, childObjects, storage, client.MatchingLabels{nnfv1alpha3.AllocationSetLabel: "ost"})
if err != nil {
return nodeStoragesExist, err
Expand All @@ -1112,7 +1116,7 @@ func (r *NnfStorageReconciler) teardownStorage(ctx context.Context, storage *nnf
}
}

if !ost0DeleteStatus.Complete() || !ostDeleteStatus.Complete() || !mdtDeleteStatus.Complete() {
if !ostDeleteStatus.Complete() || !mdtDeleteStatus.Complete() {
return nodeStoragesExist, nil
}

Expand Down

0 comments on commit 98157b8

Please sign in to comment.