From 3855261410073439c61a0ee6a877f3b51706a4ce Mon Sep 17 00:00:00 2001 From: David Eads Date: Tue, 22 Oct 2024 17:16:15 -0400 Subject: [PATCH] react to change --- pkg/operator/replacement_starter.go | 8 ++++++++ pkg/operator/starter.go | 1 + 2 files changed, 9 insertions(+) diff --git a/pkg/operator/replacement_starter.go b/pkg/operator/replacement_starter.go index 6a0aaccb5..78fa27f1e 100644 --- a/pkg/operator/replacement_starter.go +++ b/pkg/operator/replacement_starter.go @@ -53,6 +53,8 @@ type authenticationOperatorInput struct { migrationClient kubemigratorclient.Interface eventRecorder events.Recorder + clock clock.Clock + informerFactories []libraryapplyconfiguration.SimplifiedInformerFactory } @@ -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 }, @@ -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 }, diff --git a/pkg/operator/starter.go b/pkg/operator/starter.go index 921767f87..3a7749347 100644 --- a/pkg/operator/starter.go +++ b/pkg/operator/starter.go @@ -434,6 +434,7 @@ func prepareOauthAPIServerOperator( "oauth-apiserver", authOperatorInput.authenticationOperatorClient, eventRecorder, + authOperatorInput.clock, ).WithWorkloadController( "OAuthAPIServerController", "openshift-authentication-operator",