Skip to content

Commit

Permalink
ignoring err when PVC is deleted
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
  • Loading branch information
dmartinol committed Nov 11, 2024
1 parent 398e51d commit 6644853
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ func (feast *FeastServices) deployFeastServiceByType(feastType FeastServiceType)
return feast.setFeastServiceCondition(err, feastType)
}
} else {
if err := feast.deleteOwnedFeastObj(feast.initPVC(feastType)); err != nil && !apierrors.IsNotFound(err) {
return err
}
_ = feast.deleteOwnedFeastObj(feast.initPVC(feastType))
}
return feast.setFeastServiceCondition(nil, feastType)
}
Expand Down

0 comments on commit 6644853

Please sign in to comment.