Skip to content

Commit

Permalink
Add missing esClientFn specifier in controller init
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Tigera committed Oct 20, 2023
1 parent 52fa46c commit 964ed92
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/controller/logstorage/users/user_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func Add(mgr manager.Manager, opts options.AddOptions) error {
scheme: mgr.GetScheme(),
multiTenant: opts.MultiTenant,
status: status.New(mgr.GetClient(), "log-storage-users", opts.KubernetesVersion),
esClientFn: utils.NewElasticClient,
}
r.status.Run(opts.ShutdownContext)

Expand Down Expand Up @@ -124,8 +125,9 @@ func Add(mgr manager.Manager, opts options.AddOptions) error {

// Now that the users controller is set up, we can also set up the controller that cleans up stale users
usersCleanupReconciler := &UsersCleanupController{
client: mgr.GetClient(),
scheme: mgr.GetScheme(),
client: mgr.GetClient(),
scheme: mgr.GetScheme(),
esClientFn: utils.NewElasticClient,
}

// Create a controller using the reconciler and register it with the manager to receive reconcile calls.
Expand Down

0 comments on commit 964ed92

Please sign in to comment.