File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
pkg/cmd/certregenerationcontroller Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ func (o *Options) Run(ctx context.Context, clock clock.Clock) error {
109
109
return err
110
110
}
111
111
112
+ // We can't start informers until after the resources have been requested. Now is the time.
113
+ kubeAPIServerInformersForNamespaces .Start (ctx .Done ())
114
+ dynamicInformers .Start (ctx .Done ())
115
+
112
116
desiredVersion := status .VersionForOperatorFromEnv ()
113
117
missingVersion := "0.0.1-snapshot"
114
118
featureGateAccessor := featuregates .NewFeatureGateAccess (
@@ -150,11 +154,6 @@ func (o *Options) Run(ctx context.Context, clock clock.Clock) error {
150
154
return err
151
155
}
152
156
153
- // We can't start informers until after the resources have been requested. Now is the time.
154
- kubeAPIServerInformersForNamespaces .Start (ctx .Done ())
155
- dynamicInformers .Start (ctx .Done ())
156
- configInformers .Start (ctx .Done ())
157
-
158
157
// FIXME: These are missing a wait group to track goroutines and handle graceful termination
159
158
// (@deads2k wants time to think it through)
160
159
You can’t perform that action at this time.
0 commit comments