Remove resourcemanager from conroller public API (#664)

We still use it internally, but this does not need to be part of the
public API. Instead just have callers pass us the relevent listers and
we create our own resource manager.
This commit is contained in:
Brian Goff
2019-06-12 13:42:03 -07:00
committed by GitHub
parent 665b23d273
commit 3346e9e28c
2 changed files with 23 additions and 5 deletions

View File

@@ -181,7 +181,9 @@ func runRootCommand(ctx context.Context, c Opts) error {
PodInformer: podInformer,
EventRecorder: eb.NewRecorder(scheme.Scheme, corev1.EventSource{Component: path.Join(pNode.Name, "pod-controller")}),
Provider: p,
ResourceManager: rm,
SecretLister: secretInformer.Lister(),
ConfigMapLister: configMapInformer.Lister(),
ServiceLister: serviceInformer.Lister(),
})
if err != nil {
return errors.Wrap(err, "error setting up pod controller")