@@ -41,18 +41,20 @@ import (
4141
4242// ClusterReconciler reconciles a Cluster object.
4343type ClusterReconciler struct {
44- Client client.Client
45- APIReader client.Reader
44+ Client client.Client
45+ UnstructuredCachingClient client.Client
46+ APIReader client.Reader
4647
4748 // WatchFilterValue is the label value used to filter events prior to reconciliation.
4849 WatchFilterValue string
4950}
5051
5152func (r * ClusterReconciler ) SetupWithManager (ctx context.Context , mgr ctrl.Manager , options controller.Options ) error {
5253 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 ,
5658 }).SetupWithManager (ctx , mgr , options )
5759}
5860
@@ -79,37 +81,41 @@ func (r *MachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manag
7981
8082// MachineSetReconciler reconciles a MachineSet object.
8183type 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
8588
8689 // WatchFilterValue is the label value used to filter events prior to reconciliation.
8790 WatchFilterValue string
8891}
8992
9093func (r * MachineSetReconciler ) SetupWithManager (ctx context.Context , mgr ctrl.Manager , options controller.Options ) error {
9194 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 ,
96100 }).SetupWithManager (ctx , mgr , options )
97101}
98102
99103// MachineDeploymentReconciler reconciles a MachineDeployment object.
100104type MachineDeploymentReconciler struct {
101- Client client.Client
102- APIReader client.Reader
105+ Client client.Client
106+ UnstructuredCachingClient client.Client
107+ APIReader client.Reader
103108
104109 // WatchFilterValue is the label value used to filter events prior to reconciliation.
105110 WatchFilterValue string
106111}
107112
108113func (r * MachineDeploymentReconciler ) SetupWithManager (ctx context.Context , mgr ctrl.Manager , options controller.Options ) error {
109114 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 ,
113119 }).SetupWithManager (ctx , mgr , options )
114120}
115121
0 commit comments