Skip to content

Commit

Permalink
Update images/sds-replicated-volume-controller/src/pkg/controller/rep…
Browse files Browse the repository at this point in the history
…licated_storage_class.go

Signed-off-by: Aleksandr Zimin <[email protected]>
  • Loading branch information
AleksZimin authored Nov 7, 2024
1 parent 2ccda13 commit 222710f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,13 @@ func ReconcileDeleteReplicatedStorageClass(
log.Info("[ReconcileDeleteReplicatedStorageClass] StorageClass with name: " + replicatedSC.Name +
" was not deleted because the ReplicatedStorageClass is in a Failed state. Deleting only finalizer.")
case Created:
log.Info("[ReconcileDeleteReplicatedStorageClass] StorageClass with name: " + replicatedSC.Name +
" found. Deleting it.")
if sc == nil {
log.Info("[ReconcileDeleteReplicatedStorageClass] StorageClass with name: " + replicatedSC.Name +
" no need to delete.")
break
}
log.Info("[ReconcileDeleteReplicatedStorageClass] StorageClass with name: " + replicatedSC.Name +
" found. Deleting it.")

if err := DeleteStorageClass(ctx, cl, sc); err != nil {
return true, fmt.Errorf("[ReconcileDeleteReplicatedStorageClass] error DeleteStorageClass: %s",
Expand Down

0 comments on commit 222710f

Please sign in to comment.