Commit Graph

17 Commits

Author SHA1 Message Date
Scott Nichols 8cc1013bff Adding Gate implementation and a reconciler that reconciles and tracks CRDs to use and unlock the gates registered
Signed-off-by: Scott Nichols <n3wscott@upbound.io>
2025-07-10 14:57:24 -07:00
Maximilian Blatt 3b73e8ea2d feat: Upgrade controller-runtime to v0.19.0
Adjust code to apply to breaking changes in controller-runtime. There
should be no breaking changes for programs using crossplane-runtime.

Signed-off-by: Maximilian Blatt <maximilian.blatt-extern@deutschebahn.com>
2024-08-26 11:49:19 +02:00
Jared Watts 079cc1d02b
feat: change logs: support for tracking all changes made to managed resources
Signed-off-by: Jared Watts <jbw976@gmail.com>
2024-08-11 20:34:26 -07:00
Nic Cope 62e5021574 Delete the controller engine
It's breaking the dependencies of this module, and its only consumer is
the c/c repo. It should live there instead.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-05-17 12:21:33 -07:00
ezgidemirel 249f4c09be
remove XRStateMetrics
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
2024-04-18 15:44:32 +03:00
ezgidemirel aa7264baf4
make state recorders Runnable and remove unstructured listing
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
2024-04-16 20:01:05 +03:00
ezgidemirel 4b6c2de666
add XR state metrics
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
2024-04-16 11:36:10 +03:00
ezgidemirel af6588856c
change init pattern and move state metrics to a go routine
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
2024-04-08 18:48:05 +03:00
Christopher Haar e147d407d7 feat(controller-runtime): add recover true option
Signed-off-by: Christopher Haar <christopher.haar@upbound.io>
2023-08-01 10:46:32 +02:00
ezgidemirel 00a8da972a
Add secret name to ESSOptions
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
2023-03-22 18:01:48 +03:00
ezgidemirel b0785ed1ca
change store type, make tls config an option
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
2023-03-22 13:00:06 +03:00
ezgidemirel fc63b94eb5
Remove certificate loading to make it on upper layers, add unit tests
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
2023-03-22 13:00:06 +03:00
Nic Cope f7ed086985 Don't rate limit requests that are already delayed by rate limiting
Signed-off-by: Nic Cope <negz@rk0n.org>
2021-09-25 02:41:39 +00:00
Nic Cope 277dabb3df Support true global reconcile rate limiting
This PR tweaks how ratelimiters are applied to support _actual_ global reconcile
rate limiting - that is all reconcile triggers are rate limited, not just some.

See https://github.com/crossplane/crossplane/issues/2595 for details.

Signed-off-by: Nic Cope <negz@rk0n.org>
2021-09-24 21:29:00 +00:00
Nic Cope f2b0ca3026 Add DefaultOptions
I don't really expect these to be used in practice. They're mostly useful for
places like the XRD controllers where we need a default set of options to plumb
down to the XR and XRC controllers when none are passed to use (i.e. in tests).

Signed-off-by: Nic Cope <negz@rk0n.org>
2021-09-21 03:47:25 +00:00
Nic Cope efa7256648 Add a convenience function for deriving controller-runtime options
Signed-off-by: Nic Cope <negz@rk0n.org>
2021-09-21 03:12:43 +00:00
Nic Cope b7335472cd Add a controller.Options type
This type is intended to be passed as the argument to most Crossplane Setup
functions, for example:

```go
func Setup(mgr ctrl.Manager, o controller.Options) error
```

This allows us to add new options to be plumbed down to all or most controllers
without increasing the number of arguments provided to each Setup function. Sets
of controllers that require additional arguments (e.g. the pkg controllers from
crossplane/crossplane) can define their own Options struct that embeds this one.

Signed-off-by: Nic Cope <negz@rk0n.org>
2021-09-21 03:12:43 +00:00