-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yang Ding <[email protected]>
- Loading branch information
Showing
6 changed files
with
30 additions
and
179 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,7 +79,7 @@ func NewResourceExportReconciler( | |
// For more details, check Reconcile and its Result here: | ||
// - https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/reconcile | ||
func (r *ResourceExportReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { | ||
klog.InfoS("reconciling ResourceExport", "resourceexport", req.NamespacedName) | ||
klog.V(2).InfoS("reconciling ResourceExport", "resourceexport", req.NamespacedName) | ||
var resExport mcsv1alpha1.ResourceExport | ||
if err := r.Client.Get(ctx, req.NamespacedName, &resExport); err != nil { | ||
return ctrl.Result{}, client.IgnoreNotFound(err) | ||
|
@@ -92,7 +92,6 @@ func (r *ResourceExportReconciler) Reconcile(ctx context.Context, req ctrl.Reque | |
// More details about using Finalizers, please refer to https://book.kubebuilder.io/reference/using-finalizers.html. | ||
if !resExport.DeletionTimestamp.IsZero() { | ||
if common.StringExistsInSlice(resExport.Finalizers, common.ResourceExportFinalizer) { | ||
klog.Info("There are finalizers, handling delete event") | ||
err := r.handleDeleteEvent(ctx, &resExport) | ||
if err != nil { | ||
return ctrl.Result{}, err | ||
|
@@ -103,7 +102,6 @@ func (r *ResourceExportReconciler) Reconcile(ctx context.Context, req ctrl.Reque | |
} | ||
return ctrl.Result{}, nil | ||
} | ||
klog.Info("There are no finalizers, returning") | ||
return ctrl.Result{}, nil | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters