@@ -39,7 +39,6 @@ import (
39
39
apierrors "k8s.io/apimachinery/pkg/api/errors"
40
40
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
41
41
"k8s.io/client-go/kubernetes"
42
- "k8s.io/utils/clock"
43
42
)
44
43
45
44
type authenticationOperatorInput struct {
@@ -118,7 +117,7 @@ func CreateOperatorInputFromMOM(ctx context.Context, momInput libraryapplyconfig
118
117
Kind : "Deployment" ,
119
118
Namespace : "openshift-authentication-operator" ,
120
119
Name : "authentication-operator" ,
121
- })
120
+ }, momInput . Clock )
122
121
123
122
return & authenticationOperatorInput {
124
123
kubeClient : kubeClient ,
@@ -167,7 +166,7 @@ func CreateControllerInputFromControllerContext(ctx context.Context, controllerC
167
166
}
168
167
169
168
authenticationOperatorClient , dynamicInformers , err := genericoperatorclient .NewClusterScopedOperatorClient (
170
- clock. RealClock {} ,
169
+ controllerContext . Clock ,
171
170
controllerContext .KubeConfig ,
172
171
operatorv1 .GroupVersion .WithResource ("authentications" ),
173
172
operatorv1 .GroupVersion .WithKind ("Authentication" ),
@@ -187,6 +186,7 @@ func CreateControllerInputFromControllerContext(ctx context.Context, controllerC
187
186
Namespace : "openshift-authentication-operator" ,
188
187
Name : "authentication-operator" ,
189
188
},
189
+ controllerContext .Clock ,
190
190
)
191
191
192
192
return & authenticationOperatorInput {
0 commit comments