diff --git a/go.mod b/go.mod index 1a60d5dc..9dbcac9e 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/crossplane-contrib/provider-kubernetes go 1.19 require ( - github.com/crossplane/crossplane-runtime v0.19.0 + github.com/crossplane/crossplane-runtime v0.20.0-rc.0.0.20230320143010-c424c4aca5b0 github.com/crossplane/crossplane-tools v0.0.0-20220310165030-1f43fc12793e github.com/google/go-cmp v0.5.9 github.com/pkg/errors v0.9.1 diff --git a/go.sum b/go.sum index 2f2cffd4..b4d1b3d4 100644 --- a/go.sum +++ b/go.sum @@ -80,8 +80,8 @@ github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnht github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/crossplane/crossplane-runtime v0.19.0 h1:+NuhkbW3oKnRKcIBTApw34HQ4m2guxZR84m0iNGJGJg= -github.com/crossplane/crossplane-runtime v0.19.0/go.mod h1:OJQ1NxtQK2ZTRmvtnQPoy8LsXsARTnVydRVDQEgIuz4= +github.com/crossplane/crossplane-runtime v0.20.0-rc.0.0.20230320143010-c424c4aca5b0 h1:CeOwmlDuq0MU62YguasLJ1j/W58uW/FVeSlPOvOK5xM= +github.com/crossplane/crossplane-runtime v0.20.0-rc.0.0.20230320143010-c424c4aca5b0/go.mod h1:OJQ1NxtQK2ZTRmvtnQPoy8LsXsARTnVydRVDQEgIuz4= github.com/crossplane/crossplane-tools v0.0.0-20220310165030-1f43fc12793e h1:HqLaMji3FRPwEBA5P6twPz0HbE6no0XOnByLU5O1noM= github.com/crossplane/crossplane-tools v0.0.0-20220310165030-1f43fc12793e/go.mod h1:xFf30hwHd5n0/a0D4ZomId8nxQTTjE0Hc1j4/rWxefc= github.com/dave/jennifer v1.4.1 h1:XyqG6cn5RQsTj3qlWQTKlRGAyrTcsk1kUmWdZBzRjDw= diff --git a/internal/controller/object/object.go b/internal/controller/object/object.go index 6434d16e..4f62490c 100644 --- a/internal/controller/object/object.go +++ b/internal/controller/object/object.go @@ -110,6 +110,7 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { return ctrl.NewControllerManagedBy(mgr). Named(name). + WithEventFilter(resource.DesiredStateChanged()). WithOptions(o.ForControllerRuntime()). For(&v1alpha1.Object{}). Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter))