Skip to content

Update sigs.k8s.io/controller-runtime to v0.16 #447

@mikhail-aws

Description

@mikhail-aws

There is interesting change in controller runtime reconciler. Added exponential back-off if Reconcile returns error. Also added TerminalError in case we need to stop retrying reconciliation for event.

https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile#Func.Reconcile

type Reconciler interface { // Reconcile performs a full reconciliation for the object referred to by the Request. // // If the returned error is non-nil, the Result is ignored and the request will be // requeued using exponential backoff. The only exception is if the error is a // TerminalError in which case no requeuing happens. // // If the error is nil and the returned Result has a non-zero result.RequeueAfter, the request // will be requeued after the specified duration. // // If the error is nil and result.RequeueAfter is zero and result.Reque is true, the request // will be requeued using exponential backoff. Reconcile([context](https://pkg.go.dev/context).[Context](https://pkg.go.dev/context#Context), [Request](https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile#Request)) ([Result](https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile#Result), [error](https://pkg.go.dev/builtin#error)) }

There are some minor code changes required with update. Also run e2e tests suites after update.

Metadata

Metadata

Assignees

Labels

dependenciesPull requests that update a dependency file

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions