From 6b7eccba3b9c991ce832fb0c0242e9507ff84a24 Mon Sep 17 00:00:00 2001 From: Adam Harwayne Date: Tue, 11 Aug 2020 16:32:05 -0700 Subject: [PATCH] Inject the config into the context. (#1610) (#1611) --- injection/sharedmain/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/injection/sharedmain/main.go b/injection/sharedmain/main.go index c70aa8d14a..526320fcd4 100644 --- a/injection/sharedmain/main.go +++ b/injection/sharedmain/main.go @@ -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)