Skip to content

Commit 40773b4

Browse files
committed
Pass context
Signed-off-by: Nelo-T. Wallus <[email protected]>
1 parent a2e6694 commit 40773b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/server/controllers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ func (s *Server) installKubeServiceAccountTokenController(ctx context.Context, c
292292
return fmt.Errorf("failed to build token generator: %w", err)
293293
}
294294
controller, err := serviceaccountcontroller.NewTokensController(
295+
klog.FromContext(ctx).WithValues("controller", controllerName),
295296
s.KubeSharedInformerFactory.Core().V1().ServiceAccounts(),
296297
s.KubeSharedInformerFactory.Core().V1().Secrets(),
297298
kubeClient,

0 commit comments

Comments
 (0)