@@ -41,18 +41,20 @@ import (
41
41
42
42
// ClusterReconciler reconciles a Cluster object.
43
43
type ClusterReconciler struct {
44
- Client client.Client
45
- APIReader client.Reader
44
+ Client client.Client
45
+ UnstructuredCachingClient client.Client
46
+ APIReader client.Reader
46
47
47
48
// WatchFilterValue is the label value used to filter events prior to reconciliation.
48
49
WatchFilterValue string
49
50
}
50
51
51
52
func (r * ClusterReconciler ) SetupWithManager (ctx context.Context , mgr ctrl.Manager , options controller.Options ) error {
52
53
return (& clustercontroller.Reconciler {
53
- Client : r .Client ,
54
- APIReader : r .APIReader ,
55
- WatchFilterValue : r .WatchFilterValue ,
54
+ Client : r .Client ,
55
+ UnstructuredCachingClient : r .UnstructuredCachingClient ,
56
+ APIReader : r .APIReader ,
57
+ WatchFilterValue : r .WatchFilterValue ,
56
58
}).SetupWithManager (ctx , mgr , options )
57
59
}
58
60
@@ -79,37 +81,41 @@ func (r *MachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manag
79
81
80
82
// MachineSetReconciler reconciles a MachineSet object.
81
83
type MachineSetReconciler struct {
82
- Client client.Client
83
- APIReader client.Reader
84
- Tracker * remote.ClusterCacheTracker
84
+ Client client.Client
85
+ UnstructuredCachingClient client.Client
86
+ APIReader client.Reader
87
+ Tracker * remote.ClusterCacheTracker
85
88
86
89
// WatchFilterValue is the label value used to filter events prior to reconciliation.
87
90
WatchFilterValue string
88
91
}
89
92
90
93
func (r * MachineSetReconciler ) SetupWithManager (ctx context.Context , mgr ctrl.Manager , options controller.Options ) error {
91
94
return (& machinesetcontroller.Reconciler {
92
- Client : r .Client ,
93
- APIReader : r .APIReader ,
94
- Tracker : r .Tracker ,
95
- WatchFilterValue : r .WatchFilterValue ,
95
+ Client : r .Client ,
96
+ UnstructuredCachingClient : r .UnstructuredCachingClient ,
97
+ APIReader : r .APIReader ,
98
+ Tracker : r .Tracker ,
99
+ WatchFilterValue : r .WatchFilterValue ,
96
100
}).SetupWithManager (ctx , mgr , options )
97
101
}
98
102
99
103
// MachineDeploymentReconciler reconciles a MachineDeployment object.
100
104
type MachineDeploymentReconciler struct {
101
- Client client.Client
102
- APIReader client.Reader
105
+ Client client.Client
106
+ UnstructuredCachingClient client.Client
107
+ APIReader client.Reader
103
108
104
109
// WatchFilterValue is the label value used to filter events prior to reconciliation.
105
110
WatchFilterValue string
106
111
}
107
112
108
113
func (r * MachineDeploymentReconciler ) SetupWithManager (ctx context.Context , mgr ctrl.Manager , options controller.Options ) error {
109
114
return (& machinedeploymentcontroller.Reconciler {
110
- Client : r .Client ,
111
- APIReader : r .APIReader ,
112
- WatchFilterValue : r .WatchFilterValue ,
115
+ Client : r .Client ,
116
+ UnstructuredCachingClient : r .UnstructuredCachingClient ,
117
+ APIReader : r .APIReader ,
118
+ WatchFilterValue : r .WatchFilterValue ,
113
119
}).SetupWithManager (ctx , mgr , options )
114
120
}
115
121
0 commit comments