reconciler finds the reconciler for a resource kind.
(resourceKind string)
| 840 | |
| 841 | // reconciler finds the reconciler for a resource kind. |
| 842 | func (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. |
| 851 | func (c *Controller) checkRunning() error { |
no test coverage detected