@@ -99,7 +99,7 @@ func prepareOauthOperator(
9999 informerFactories authenticationOperatorInformerFactories ,
100100 resourceSyncController * resourcesynccontroller.ResourceSyncController ,
101101 versionRecorder status.VersionGetter ,
102- ) ([]libraryapplyconfiguration.RunOnceFunc , []libraryapplyconfiguration.RunFunc , error ) {
102+ ) ([]libraryapplyconfiguration.NamedRunOnce , []libraryapplyconfiguration.RunFunc , error ) {
103103
104104 clusterVersion , err := authOperatorInput .configClient .ConfigV1 ().ClusterVersions ().Get (ctx , "version" , metav1.GetOptions {})
105105 if err != nil {
@@ -318,26 +318,26 @@ func prepareOauthOperator(
318318 authOperatorInput .eventRecorder ,
319319 )
320320
321- runOnceFns := []libraryapplyconfiguration.RunOnceFunc {
322- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , configObserver .Sync ),
323- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , deploymentController .Sync ),
324- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , managementStateController .Sync ),
325- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , metadataController .Sync ),
326- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , oauthClientsController .Sync ),
327- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , payloadConfigController .Sync ),
328- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , routerCertsController .Sync ),
329- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , serviceCAController .Sync ),
330- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , staticResourceController .Sync ),
331- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , wellKnownReadyController .Sync ),
332- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , authRouteCheckController .Sync ),
333- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , authServiceCheckController .Sync ),
334- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , authServiceEndpointCheckController .Sync ),
335- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , workersAvailableController .Sync ),
336- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , proxyConfigController .Sync ),
337- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , customRouteController .Sync ),
338- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , trustDistributionController .Sync ),
339- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , staleConditions .Sync ),
340- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , ingressStateController .Sync ),
321+ runOnceFns := []libraryapplyconfiguration.NamedRunOnce {
322+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-configObserver" , configObserver .Sync ),
323+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-deploymentController" , deploymentController .Sync ),
324+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-managementStateController" , managementStateController .Sync ),
325+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-metadataController" , metadataController .Sync ),
326+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-oauthClientsController" , oauthClientsController .Sync ),
327+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-payloadConfigController" , payloadConfigController .Sync ),
328+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-routerCertsController" , routerCertsController .Sync ),
329+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-serviceCAController" , serviceCAController .Sync ),
330+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-staticResourceController" , staticResourceController .Sync ),
331+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-wellKnownReadyController" , wellKnownReadyController .Sync ),
332+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-authRouteCheckController" , authRouteCheckController .Sync ),
333+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-authServiceCheckController" , authServiceCheckController .Sync ),
334+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-authServiceEndpointCheckController" , authServiceEndpointCheckController .Sync ),
335+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-workersAvailableController" , workersAvailableController .Sync ),
336+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-proxyConfigController" , proxyConfigController .Sync ),
337+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-customRouteController" , customRouteController .Sync ),
338+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-trustDistributionController" , trustDistributionController .Sync ),
339+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-staleConditions" , staleConditions .Sync ),
340+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-ingressStateController" , ingressStateController .Sync ),
341341 }
342342
343343 runFns := []libraryapplyconfiguration.RunFunc {
@@ -370,7 +370,7 @@ func prepareOauthOperator(
370370 informerFactories .operatorConfigInformer ,
371371 authOperatorInput .eventRecorder ,
372372 )
373- runOnceFns = append (runOnceFns , libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , terminationController .Sync ))
373+ runOnceFns = append (runOnceFns , libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-terminationController" , terminationController .Sync ))
374374 runFns = append (runFns , libraryapplyconfiguration .AdaptRunFn (terminationController .Run ))
375375 }
376376
@@ -383,7 +383,7 @@ func prepareOauthAPIServerOperator(
383383 informerFactories authenticationOperatorInformerFactories ,
384384 resourceSyncController * resourcesynccontroller.ResourceSyncController ,
385385 versionRecorder status.VersionGetter ,
386- ) ([]libraryapplyconfiguration.RunOnceFunc , []libraryapplyconfiguration.RunFunc , error ) {
386+ ) ([]libraryapplyconfiguration.NamedRunOnce , []libraryapplyconfiguration.RunFunc , error ) {
387387 eventRecorder := authOperatorInput .eventRecorder .ForComponent ("oauth-apiserver" )
388388
389389 // add syncing for etcd certs for oauthapi-server
@@ -651,11 +651,11 @@ func prepareOauthAPIServerOperator(
651651 eventRecorder ,
652652 )
653653
654- runOnceFns := []libraryapplyconfiguration.RunOnceFunc {
655- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , configObserver .Sync ),
656- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , authenticatorCertRequester .Sync ),
657- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , webhookAuthController .Sync ),
658- libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , webhookCertsApprover .Sync ),
654+ runOnceFns := []libraryapplyconfiguration.NamedRunOnce {
655+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-other-configObserver" , configObserver .Sync ),
656+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-authenticatorCertRequester" , authenticatorCertRequester .Sync ),
657+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-webhookAuthController" , webhookAuthController .Sync ),
658+ libraryapplyconfiguration .AdaptSyncFn (authOperatorInput .eventRecorder , "TODO-webhookCertsApprover" , webhookCertsApprover .Sync ),
659659 // TODO missing :(
660660 //libraryapplyconfiguration.AdaptSyncFn(authOperatorInput.eventRecorder, apiServerControllers.Sync),
661661 }
0 commit comments