Skip to content

Commit

Permalink
react to change
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Oct 22, 2024
1 parent 28bd25e commit 3855261
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/operator/replacement_starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ type authenticationOperatorInput struct {
migrationClient kubemigratorclient.Interface
eventRecorder events.Recorder

clock clock.Clock

informerFactories []libraryapplyconfiguration.SimplifiedInformerFactory
}

Expand Down Expand Up @@ -121,6 +123,9 @@ func CreateOperatorInputFromMOM(ctx context.Context, momInput libraryapplyconfig
apiregistrationv1Client: apiregistrationv1Client,
migrationClient: migrationClient,
eventRecorder: eventRecorder,

clock: momInput.Clock,

informerFactories: []libraryapplyconfiguration.SimplifiedInformerFactory{
libraryapplyconfiguration.DynamicInformerFactoryAdapter(dynamicInformers), // we don't share the dynamic informers, but we only want to start when requested
},
Expand Down Expand Up @@ -190,6 +195,9 @@ func CreateControllerInputFromControllerContext(ctx context.Context, controllerC
apiregistrationv1Client: apiregistrationv1Client,
migrationClient: migrationClient,
eventRecorder: eventRecorder,

clock: clock.RealClock{},

informerFactories: []libraryapplyconfiguration.SimplifiedInformerFactory{
libraryapplyconfiguration.DynamicInformerFactoryAdapter(dynamicInformers), // we don't share the dynamic informers, but we only want to start when requested
},
Expand Down
1 change: 1 addition & 0 deletions pkg/operator/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ func prepareOauthAPIServerOperator(
"oauth-apiserver",
authOperatorInput.authenticationOperatorClient,
eventRecorder,
authOperatorInput.clock,
).WithWorkloadController(
"OAuthAPIServerController",
"openshift-authentication-operator",
Expand Down

0 comments on commit 3855261

Please sign in to comment.