Skip to content

Commit

Permalink
allow nnfnode
Browse files Browse the repository at this point in the history
Signed-off-by: Dean Roehrich <[email protected]>
  • Loading branch information
roehrich-hpe committed Feb 15, 2024
1 parent a899a5c commit 5ca8b56
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,16 @@ func (*nodeLocalController) SetNamespaces(options *ctrl.Options) {
}

func (c *nodeLocalController) SetupReconcilers(mgr manager.Manager, opts *nnf.Options) error {
if c.Level == NodeLocalController {
if err := (&controllers.NnfNodeReconciler{
Client: mgr.GetClient(),
Log: ctrl.Log.WithName("controllers").WithName("NnfNode"),
Scheme: mgr.GetScheme(),
NamespacedName: types.NamespacedName{Name: controllers.NnfNlcResourceName, Namespace: os.Getenv("NNF_NODE_NAME")},
}).SetupWithManager(mgr); err != nil {
return err
}
if err := (&controllers.NnfNodeReconciler{
Client: mgr.GetClient(),
Log: ctrl.Log.WithName("controllers").WithName("NnfNode"),
Scheme: mgr.GetScheme(),
NamespacedName: types.NamespacedName{Name: controllers.NnfNlcResourceName, Namespace: os.Getenv("NNF_NODE_NAME")},
}).SetupWithManager(mgr); err != nil {
return err
}

if c.Level == NodeLocalController {
if err := (&controllers.NnfNodeECDataReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
Expand Down

0 comments on commit 5ca8b56

Please sign in to comment.