Skip to content

Commit

Permalink
chore: fixes typos (opendatahub-io#1111)
Browse files Browse the repository at this point in the history
Just a little nits found during working on something else.

(cherry picked from commit eee87c0)
  • Loading branch information
bartoszmajsak authored and VaishnaviHire committed Jul 24, 2024
1 parent 5371448 commit 86ac280
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ func (r *DataScienceClusterReconciler) Reconcile(ctx context.Context, req ctrl.R

// If DSC CR exist and deletion CM exist
// delete DSC CR and let reconcile requeue
// sometimes with finalzier DSC CR wont get deleted, force to remove finalizer here
// sometimes with finalizer DSC CR won't get deleted, force to remove finalizer here
if upgrade.HasDeleteConfigMap(ctx, r.Client) {
if controllerutil.ContainsFinalizer(instance, finalizerName) {
if controllerutil.RemoveFinalizer(instance, finalizerName) {
if err := r.Update(ctx, instance); err != nil {
r.Log.Info("Error to remove DSC finalzier", "error", err)
r.Log.Info("Error to remove DSC finalizer", "error", err)
return ctrl.Result{}, err
}
r.Log.Info("Removed finalizer for DataScienceCluster", "name", instance.Name, "finalizer", finalizerName)
Expand Down

0 comments on commit 86ac280

Please sign in to comment.