diff --git a/controllers/network_controller.go b/controllers/network_controller.go index bf73afd..bec1899 100644 --- a/controllers/network_controller.go +++ b/controllers/network_controller.go @@ -55,7 +55,7 @@ func (r *NetworkReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct network := &machinev1alpha1.Network{} err := r.Get(ctx, req.NamespacedName, network) if apierrors.IsNotFound(err) { - log.Error(err, "requested network resource not found", "name", req.NamespacedName) + log.Info("Resource not found, it might have been deleted.") return ctrl.Result{}, client.IgnoreNotFound(err) } if err != nil { diff --git a/controllers/networkcounter_controller.go b/controllers/networkcounter_controller.go index fdd8da6..7a77f18 100644 --- a/controllers/networkcounter_controller.go +++ b/controllers/networkcounter_controller.go @@ -39,7 +39,7 @@ func (r *NetworkCounterReconciler) Reconcile(ctx context.Context, req ctrl.Reque nc := &machinev1alpha1.NetworkCounter{} err := r.Get(ctx, req.NamespacedName, nc) if apierrors.IsNotFound(err) { - log.Error(err, "requested machine resource not found", "name", req.NamespacedName) + log.Info("Resource not found, it might have been deleted.") return ctrl.Result{}, client.IgnoreNotFound(err) } if err != nil { diff --git a/controllers/subnet_controller.go b/controllers/subnet_controller.go index c7dcacd..68b2dad 100644 --- a/controllers/subnet_controller.go +++ b/controllers/subnet_controller.go @@ -64,7 +64,7 @@ func (r *SubnetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr subnet := &v1alpha1.Subnet{} err := r.Get(ctx, req.NamespacedName, subnet) if apierrors.IsNotFound(err) { - log.Error(err, "requested subnet resource not found", "name", req.NamespacedName) + log.Info("Resource not found, it might have been deleted.") return ctrl.Result{}, client.IgnoreNotFound(err) } if err != nil {