From bf4f09dc55f2035701f5ad1375d93b0f7e83c1f0 Mon Sep 17 00:00:00 2001 From: gauron99 Date: Tue, 25 Aug 2026 12:22:44 +0200 Subject: [PATCH] fix: drop deprecated ctrl.Result.Requeue golangci-lint latest (v2.13.1) fails Lint on main with staticcheck SA1019: controller-runtime deprecated Result.Requeue in favor of RequeueAfter. The Update that adds the finalizer already triggers a watch event on the object, so an explicit requeue is redundant. Return an empty Result. --- .gitignore | 7 ++++++- .../controller/objectbucketsource_controller.go | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 70e1559..4dd7c34 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,9 @@ go.work.sum bin/ # Local registry certificates -hack/registry-certs/ \ No newline at end of file +hack/registry-certs/ + +#ai +CLAUDE.md +CLAUDE.local.md +.claude/*local* diff --git a/internal/objectbucketsource/controller/objectbucketsource_controller.go b/internal/objectbucketsource/controller/objectbucketsource_controller.go index c02aa94..027b9f0 100644 --- a/internal/objectbucketsource/controller/objectbucketsource_controller.go +++ b/internal/objectbucketsource/controller/objectbucketsource_controller.go @@ -87,7 +87,7 @@ func (r *ObjectBucketSourceReconciler) Reconcile(ctx context.Context, req ctrl.R if err := r.Update(ctx, &source); err != nil { return ctrl.Result{}, err } - return ctrl.Result{Requeue: true}, nil + return ctrl.Result{}, nil } obcName := source.Spec.ObjectBucketClaim.Name