@@ -238,7 +238,6 @@ func RunOperator(ctx context.Context, controllerContext *controllercmd.Controlle
238
238
configClient .ConfigV1 (),
239
239
// clients
240
240
operatorClient ,
241
- operatorConfigClient .OperatorV1 (),
242
241
consoleClient .ConsoleV1 ().ConsoleCLIDownloads (),
243
242
routesClient .RouteV1 (),
244
243
// informers
@@ -257,8 +256,7 @@ func RunOperator(ctx context.Context, controllerContext *controllercmd.Controlle
257
256
configInformers ,
258
257
// clients
259
258
operatorClient ,
260
- operatorConfigClient .OperatorV1 ().Consoles (), // operator config so we can update status
261
- kubeClient .CoreV1 (), // only needs to interact with the service resource
259
+ kubeClient .CoreV1 (), // only needs to interact with the service resource
262
260
// informers
263
261
operatorConfigInformers .Operator ().V1 ().Consoles (), // OperatorConfig
264
262
kubeInformersNamespaced .Core ().V1 ().Services (), // Services
@@ -273,8 +271,7 @@ func RunOperator(ctx context.Context, controllerContext *controllercmd.Controlle
273
271
configInformers ,
274
272
operatorClient ,
275
273
// clients
276
- operatorConfigClient .OperatorV1 ().Consoles (), // operator config so we can update status
277
- kubeClient .CoreV1 (), // only needs to interact with the service resource
274
+ kubeClient .CoreV1 (), // only needs to interact with the service resource
278
275
// informers
279
276
operatorConfigInformers .Operator ().V1 ().Consoles (), // OperatorConfig
280
277
kubeInformersNamespaced .Core ().V1 ().Services (), // Services
@@ -291,7 +288,6 @@ func RunOperator(ctx context.Context, controllerContext *controllercmd.Controlle
291
288
configInformers ,
292
289
// clients
293
290
operatorClient ,
294
- operatorConfigClient .OperatorV1 ().Consoles (),
295
291
routesClient .RouteV1 (),
296
292
kubeClient .CoreV1 (),
297
293
// route
@@ -311,7 +307,6 @@ func RunOperator(ctx context.Context, controllerContext *controllercmd.Controlle
311
307
configInformers ,
312
308
// clients
313
309
operatorClient ,
314
- operatorConfigClient .OperatorV1 ().Consoles (),
315
310
routesClient .RouteV1 (),
316
311
kubeClient .CoreV1 (),
317
312
// route
@@ -327,7 +322,6 @@ func RunOperator(ctx context.Context, controllerContext *controllercmd.Controlle
327
322
configClient .ConfigV1 (),
328
323
// clients
329
324
operatorClient ,
330
- operatorConfigClient .OperatorV1 ().Consoles (),
331
325
routesClient .RouteV1 (),
332
326
kubeClient .CoreV1 (),
333
327
// route
@@ -345,7 +339,7 @@ func RunOperator(ctx context.Context, controllerContext *controllercmd.Controlle
345
339
configInformers ,
346
340
// clients
347
341
operatorClient ,
348
- operatorConfigClient . OperatorV1 ().Consoles (),
342
+ operatorConfigInformers . Operator (). V1 ().Consoles (),
349
343
consoleClient .ConsoleV1 ().ConsoleNotifications (),
350
344
//events
351
345
recorder ,
@@ -433,7 +427,7 @@ func RunOperator(ctx context.Context, controllerContext *controllercmd.Controlle
433
427
api .OpenShiftConsoleName ,
434
428
// clients
435
429
operatorClient ,
436
- operatorConfigClient . OperatorV1 ().Consoles (),
430
+ operatorConfigInformers . Operator (). V1 ().Consoles (),
437
431
policyClient ,
438
432
// informers
439
433
kubeInformersNamespaced .Policy ().V1 ().PodDisruptionBudgets (),
@@ -445,7 +439,7 @@ func RunOperator(ctx context.Context, controllerContext *controllercmd.Controlle
445
439
api .DownloadsResourceName ,
446
440
// clients
447
441
operatorClient ,
448
- operatorConfigClient . OperatorV1 ().Consoles (),
442
+ operatorConfigInformers . Operator (). V1 ().Consoles (),
449
443
policyClient ,
450
444
// informers
451
445
kubeInformersNamespaced .Policy ().V1 ().PodDisruptionBudgets (),
0 commit comments