MCPcopy Create free account
hub / github.com/rilldata/rill / reconciler

Method reconciler

runtime/controller.go:842–848  ·  view source on GitHub ↗

reconciler finds the reconciler for a resource kind.

(resourceKind string)

Source from the content-addressed store, hash-verified

840
841// reconciler finds the reconciler for a resource kind.
842func (c *Controller) reconciler(resourceKind string) Reconciler {
843 reconciler, ok := c.reconcilers[resourceKind]
844 if !ok {
845 panic(fmt.Errorf("no reconciler registered for resource type %q", resourceKind))
846 }
847 return reconciler
848}
849
850// checkRunning panics if called when the Controller is not running.
851func (c *Controller) checkRunning() error {

Callers 5

invokeMethod · 0.95
createMethod · 0.80
updateSpecMethod · 0.80
updateStateMethod · 0.80

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected