Skip to content

Commit e778258

Browse files
committed
Add missing params
1 parent bb50ef6 commit e778258

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

pkg/assets/handler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ import (
77
"sync"
88

99
"github.com/openshift/library-go/pkg/operator/events"
10+
"k8s.io/utils/clock"
1011
)
1112

1213
var (
1314
lock sync.Mutex
1415
)
1516

16-
var assetsEventRecorder events.Recorder = events.NewLoggingEventRecorder("microshift-assets")
17+
var assetsEventRecorder events.Recorder = events.NewLoggingEventRecorder("microshift-assets", clock.RealClock{})
1718

1819
type RenderParams map[string]interface{}
1920

pkg/controllers/cluster-policy-controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
unstructuredv1 "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2828
"k8s.io/apimachinery/pkg/runtime"
2929
"k8s.io/apimachinery/pkg/runtime/serializer"
30+
"k8s.io/utils/clock"
3031
)
3132

3233
type ClusterPolicyController struct {
@@ -74,7 +75,7 @@ func (s *ClusterPolicyController) configure(cfg *config.Config) error {
7475
}
7576

7677
const namespace = "openshift-kube-controller-manager"
77-
builder := controllercmd.NewController(s.Name(), clusterpolicycontroller.RunClusterPolicyController).
78+
builder := controllercmd.NewController(s.Name(), clusterpolicycontroller.RunClusterPolicyController, clock.RealClock{}).
7879
WithKubeConfigFile(s.kubeconfig, nil).
7980
WithComponentNamespace(namespace).
8081
// Without an explicit owner reference, the builder will try using POD_NAME or the

pkg/controllers/openshift-route-controller-manager.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
"k8s.io/apimachinery/pkg/runtime"
2525
"k8s.io/apimachinery/pkg/runtime/serializer"
2626
"k8s.io/klog/v2"
27+
"k8s.io/utils/clock"
2728

2829
configv1 "github.com/openshift/api/config/v1"
2930
openshiftcontrolplanev1 "github.com/openshift/api/openshiftcontrolplane/v1"
@@ -101,7 +102,7 @@ func (s *OCPRouteControllerManager) configure(cfg *config.Config) error {
101102
}
102103

103104
const namespace = "openshift-route-controller-manager"
104-
builder := controllercmd.NewController(s.Name(), route_controller_manager.RunRouteControllerManager).
105+
builder := controllercmd.NewController(s.Name(), route_controller_manager.RunRouteControllerManager, clock.RealClock{}).
105106
WithKubeConfigFile(s.kubeconfig, nil).
106107
WithComponentNamespace(namespace).
107108
// Without an explicit owner reference, the builder will try using POD_NAME or the

vendor/github.com/openshift/route-controller-manager/pkg/cmd/route-controller-manager/cmd.go

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)