Skip to content

Commit 8c1a35c

Browse files
ruanxindependabot[bot]c-pius
authored
chore: Upgrade controller runtime to 0.21.0 (#2479)
* chore(dependabot): bump sigs.k8s.io/controller-runtime Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.20.4 to 0.21.0. - [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases) - [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md) - [Commits](kubernetes-sigs/controller-runtime@v0.20.4...v0.21.0) --- updated-dependencies: - dependency-name: sigs.k8s.io/controller-runtime dependency-version: 0.21.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * remove requeue: false case in ctrl.Result --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christoph Schwägerl <[email protected]>
1 parent e279938 commit 8c1a35c

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ require (
2929
golang.org/x/time v0.11.0
3030
k8s.io/utils v0.0.0-20250321185631-1f6e0b77f77e
3131
ocm.software/ocm v0.24.0
32-
sigs.k8s.io/controller-runtime v0.20.4
32+
sigs.k8s.io/controller-runtime v0.21.0
3333
sigs.k8s.io/yaml v1.4.0
3434
)
3535

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,8 +1291,8 @@ oras.land/oras-go v1.2.6 h1:z8cmxQXBU8yZ4mkytWqXfo6tZcamPwjsuxYU81xJ8Lk=
12911291
oras.land/oras-go v1.2.6/go.mod h1:OVPc1PegSEe/K8YiLfosrlqlqTN9PUyFvOw5Y9gwrT8=
12921292
oras.land/oras-go/v2 v2.5.0 h1:o8Me9kLY74Vp5uw07QXPiitjsw7qNXi8Twd+19Zf02c=
12931293
oras.land/oras-go/v2 v2.5.0/go.mod h1:z4eisnLP530vwIOUOJeBIj0aGI0L1C3d53atvCBqZHg=
1294-
sigs.k8s.io/controller-runtime v0.20.4 h1:X3c+Odnxz+iPTRobG4tp092+CvBU9UK0t/bRf+n0DGU=
1295-
sigs.k8s.io/controller-runtime v0.20.4/go.mod h1:xg2XB0K5ShQzAgsoujxuKN4LNXR2LfwwHsPj7Iaw+XY=
1294+
sigs.k8s.io/controller-runtime v0.21.0 h1:CYfjpEuicjUecRk+KAeyYh+ouUBn4llGyDYytIGcJS8=
1295+
sigs.k8s.io/controller-runtime v0.21.0/go.mod h1:OSg14+F65eWqIu4DceX7k/+QRAbTTvxeQSNSOQpukWM=
12961296
sigs.k8s.io/gateway-api v1.3.0 h1:q6okN+/UKDATola4JY7zXzx40WO4VISk7i9DIfOvr9M=
12971297
sigs.k8s.io/gateway-api v1.3.0/go.mod h1:d8NV8nJbaRbEKem+5IuxkL8gJGOZ+FJ+NvOIltV8gDk=
12981298
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 h1:gBQPwqORJ8d8/YNZWEjoZs7npUVDpVXUUOFfW6CgAqE=

internal/controller/istiogatewaysecret/controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
4545
return ctrl.Result{}, fmt.Errorf("failed to get istio gateway root secret: %w", err)
4646
}
4747
if rootSecret == nil {
48-
return ctrl.Result{Requeue: true, RequeueAfter: r.intervals.Error}, ErrSecretNotFound
48+
return ctrl.Result{RequeueAfter: r.intervals.Error}, ErrSecretNotFound
4949
}
5050

5151
err = r.handler.ManageGatewaySecret(ctx, rootSecret)
5252
if err != nil {
53-
return ctrl.Result{Requeue: true, RequeueAfter: r.intervals.Error},
53+
return ctrl.Result{RequeueAfter: r.intervals.Error},
5454
fmt.Errorf("failed to manage gateway secret: %w", err)
5555
}
5656

57-
return ctrl.Result{Requeue: true, RequeueAfter: r.intervals.Success}, nil
57+
return ctrl.Result{RequeueAfter: r.intervals.Success}, nil
5858
}

internal/controller/kyma/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
9898
if err = r.deleteOrphanedCertificate(ctx, req.Name); err != nil {
9999
return ctrl.Result{}, err
100100
}
101-
return ctrl.Result{Requeue: false}, nil
101+
return ctrl.Result{}, nil
102102
}
103103
r.Metrics.RecordRequeueReason(metrics.KymaRetrieval, queue.UnexpectedRequeue)
104104
return ctrl.Result{}, fmt.Errorf("KymaController: %w", err)
@@ -382,7 +382,7 @@ func (r *Reconciler) processKymaState(ctx context.Context, kyma *v1beta2.Kyma) (
382382
return ctrl.Result{}, nil // no requeue of invalid state
383383
}
384384

385-
return ctrl.Result{Requeue: false}, nil
385+
return ctrl.Result{}, nil
386386
}
387387

388388
func (r *Reconciler) handleInitialState(ctx context.Context, kyma *v1beta2.Kyma) (ctrl.Result, error) {

internal/controller/mandatorymodule/deletion_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (r *DeletionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (c
5656
if util.IsNotFound(err) {
5757
logger.V(log.DebugLevel).Info(fmt.Sprintf("ModuleTemplate %s not found, probably already deleted",
5858
req.NamespacedName))
59-
return ctrl.Result{Requeue: false}, nil
59+
return ctrl.Result{}, nil
6060
}
6161
return ctrl.Result{}, fmt.Errorf("MandatoryModuleDeletionController: %w", err)
6262
}

internal/controller/mandatorymodule/installation_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (r *InstallationReconciler) Reconcile(ctx context.Context, req ctrl.Request
5353
if util.IsNotFound(err) {
5454
logger.V(log.DebugLevel).Info(fmt.Sprintf("Kyma %s not found, probably already deleted",
5555
req.NamespacedName))
56-
return ctrl.Result{Requeue: false}, nil
56+
return ctrl.Result{}, nil
5757
}
5858
return ctrl.Result{}, fmt.Errorf("MandatoryModuleController: %w", err)
5959
}

internal/controller/watcher/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
7373
if !util.IsNotFound(err) {
7474
return ctrl.Result{}, fmt.Errorf("watcherController: %w", err)
7575
}
76-
return ctrl.Result{Requeue: false}, nil
76+
return ctrl.Result{}, nil
7777
}
7878

7979
if !watcher.DeletionTimestamp.IsZero() && watcher.Status.State != shared.StateDeleting {
@@ -118,7 +118,7 @@ func (r *Reconciler) stateHandling(ctx context.Context, watcher *v1beta2.Watcher
118118
return ctrl.Result{}, nil // no requeue of invalid state
119119
}
120120

121-
return ctrl.Result{Requeue: false}, nil
121+
return ctrl.Result{}, nil
122122
}
123123

124124
func (r *Reconciler) handleDeletingState(ctx context.Context, watcher *v1beta2.Watcher) (ctrl.Result, error) {

0 commit comments

Comments
 (0)