@@ -21,12 +21,9 @@ import (
21
21
"sync"
22
22
"time"
23
23
24
- "k8s.io/apimachinery/pkg/runtime"
25
24
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
26
25
"k8s.io/apimachinery/pkg/util/wait"
27
- "k8s.io/client-go/tools/record"
28
26
"k8s.io/client-go/util/workqueue"
29
- "sigs.k8s.io/controller-runtime/pkg/client"
30
27
"sigs.k8s.io/controller-runtime/pkg/handler"
31
28
ctrlmetrics "sigs.k8s.io/controller-runtime/pkg/internal/controller/metrics"
32
29
logf "sigs.k8s.io/controller-runtime/pkg/internal/log"
@@ -53,12 +50,6 @@ type Controller struct {
53
50
// Defaults to the DefaultReconcileFunc.
54
51
Do reconcile.Reconciler
55
52
56
- // Client is a lazily initialized Client. The controllerManager will initialize this when Start is called.
57
- Client client.Client
58
-
59
- // Scheme is injected by the controllerManager when controllerManager.Start is called
60
- Scheme * runtime.Scheme
61
-
62
53
// MakeQueue constructs the queue for this controller once the controller is ready to start.
63
54
// This exists because the standard Kubernetes workqueues start themselves immediately, which
64
55
// leads to goroutine leaks if something calls controller.New repeatedly.
@@ -80,10 +71,6 @@ type Controller struct {
80
71
// Started is true if the Controller has been Started
81
72
Started bool
82
73
83
- // Recorder is an event recorder for recording Event resources to the
84
- // Kubernetes API.
85
- Recorder record.EventRecorder
86
-
87
74
// TODO(community): Consider initializing a logger with the Controller Name as the tag
88
75
89
76
// watches maintains a list of sources, handlers, and predicates to start when the controller is started.
0 commit comments