Skip to content

Commit

Permalink
Merge pull request #18 from rmb938/rmb938-patch-1
Browse files Browse the repository at this point in the history
fix deleting classes
  • Loading branch information
rmb938 authored Nov 10, 2020
2 parents 8267623 + 9229a68 commit d80a482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/hostportclass_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (r *HostPortClassReconciler) Reconcile(req ctrl.Request) (ctrl.Result, erro

// If class is deleting
if hpcl.DeletionTimestamp.IsZero() == false {
if controllerutil.ContainsFinalizer(hpcl, hostportv1alpha1.HostPortFinalizer) {
if controllerutil.ContainsFinalizer(hpcl, hostportv1alpha1.HostPortFinalizer) == false {
return ctrl.Result{}, nil
}

Expand Down

0 comments on commit d80a482

Please sign in to comment.