Skip to content

Commit

Permalink
Inject the config into the context. (#1610) (#1611)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harwayne authored Aug 11, 2020
1 parent 91561f0 commit 6b7eccb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions injection/sharedmain/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ func MainWithConfig(ctx context.Context, component string, cfg *rest.Config, cto
if cfg.Burst == 0 {
cfg.Burst = len(ctors) * rest.DefaultBurst
}
ctx = injection.WithConfig(ctx, cfg)

ctx, informers := injection.Default.SetupInformers(ctx, cfg)

logger, atomicLevel := SetupLoggerOrDie(ctx, component)
Expand Down

0 comments on commit 6b7eccb

Please sign in to comment.