@@ -47,16 +47,16 @@ type ClusterReconciler struct {
47
47
UnstructuredCachingClient client.Client
48
48
APIReader client.Reader
49
49
50
- // WatchFilterPredicate is the label selector value used to filter events prior to reconciliation.
51
- WatchFilterPredicate predicates.LabelMatcher
50
+ // WatchFilterValue is the label selector value used to filter events prior to reconciliation.
51
+ WatchFilterValue predicates.LabelMatcher
52
52
}
53
53
54
54
func (r * ClusterReconciler ) SetupWithManager (ctx context.Context , mgr ctrl.Manager , options controller.Options ) error {
55
55
return (& clustercontroller.Reconciler {
56
56
Client : r .Client ,
57
57
UnstructuredCachingClient : r .UnstructuredCachingClient ,
58
58
APIReader : r .APIReader ,
59
- WatchFilterPredicate : r . WatchFilterPredicate ,
59
+ WatchFilterValue : r . WatchFilterValue ,
60
60
}).SetupWithManager (ctx , mgr , options )
61
61
}
62
62
@@ -67,8 +67,8 @@ type MachineReconciler struct {
67
67
APIReader client.Reader
68
68
Tracker * remote.ClusterCacheTracker
69
69
70
- // WatchFilterPredicate is the label selector value used to filter events prior to reconciliation.
71
- WatchFilterPredicate predicates.LabelMatcher
70
+ // WatchFilterValue is the label selector value used to filter events prior to reconciliation.
71
+ WatchFilterValue predicates.LabelMatcher
72
72
73
73
// NodeDrainClientTimeout timeout of the client used for draining nodes.
74
74
NodeDrainClientTimeout time.Duration
@@ -80,7 +80,7 @@ func (r *MachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manag
80
80
UnstructuredCachingClient : r .UnstructuredCachingClient ,
81
81
APIReader : r .APIReader ,
82
82
Tracker : r .Tracker ,
83
- WatchFilterPredicate : r . WatchFilterPredicate ,
83
+ WatchFilterValue : r . WatchFilterValue ,
84
84
NodeDrainClientTimeout : r .NodeDrainClientTimeout ,
85
85
}).SetupWithManager (ctx , mgr , options )
86
86
}
@@ -92,8 +92,8 @@ type MachineSetReconciler struct {
92
92
APIReader client.Reader
93
93
Tracker * remote.ClusterCacheTracker
94
94
95
- // WatchFilterPredicate is the label selector value used to filter events prior to reconciliation.
96
- WatchFilterPredicate predicates.LabelMatcher
95
+ // WatchFilterValue is the label selector value used to filter events prior to reconciliation.
96
+ WatchFilterValue predicates.LabelMatcher
97
97
}
98
98
99
99
func (r * MachineSetReconciler ) SetupWithManager (ctx context.Context , mgr ctrl.Manager , options controller.Options ) error {
@@ -102,7 +102,7 @@ func (r *MachineSetReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Ma
102
102
UnstructuredCachingClient : r .UnstructuredCachingClient ,
103
103
APIReader : r .APIReader ,
104
104
Tracker : r .Tracker ,
105
- WatchFilterPredicate : r . WatchFilterPredicate ,
105
+ WatchFilterValue : r . WatchFilterValue ,
106
106
}).SetupWithManager (ctx , mgr , options )
107
107
}
108
108
@@ -112,16 +112,16 @@ type MachineDeploymentReconciler struct {
112
112
UnstructuredCachingClient client.Client
113
113
APIReader client.Reader
114
114
115
- // WatchFilterPredicate is the label selector value used to filter events prior to reconciliation.
116
- WatchFilterPredicate predicates.LabelMatcher
115
+ // WatchFilterValue is the label selector value used to filter events prior to reconciliation.
116
+ WatchFilterValue predicates.LabelMatcher
117
117
}
118
118
119
119
func (r * MachineDeploymentReconciler ) SetupWithManager (ctx context.Context , mgr ctrl.Manager , options controller.Options ) error {
120
120
return (& machinedeploymentcontroller.Reconciler {
121
121
Client : r .Client ,
122
122
UnstructuredCachingClient : r .UnstructuredCachingClient ,
123
123
APIReader : r .APIReader ,
124
- WatchFilterPredicate : r . WatchFilterPredicate ,
124
+ WatchFilterValue : r . WatchFilterValue ,
125
125
}).SetupWithManager (ctx , mgr , options )
126
126
}
127
127
@@ -130,15 +130,15 @@ type MachineHealthCheckReconciler struct {
130
130
Client client.Client
131
131
Tracker * remote.ClusterCacheTracker
132
132
133
- // WatchFilterPredicate is the label selector value used to filter events prior to reconciliation.
134
- WatchFilterPredicate predicates.LabelMatcher
133
+ // WatchFilterValue is the label selector value used to filter events prior to reconciliation.
134
+ WatchFilterValue predicates.LabelMatcher
135
135
}
136
136
137
137
func (r * MachineHealthCheckReconciler ) SetupWithManager (ctx context.Context , mgr ctrl.Manager , options controller.Options ) error {
138
138
return (& machinehealthcheckcontroller.Reconciler {
139
- Client : r .Client ,
140
- Tracker : r .Tracker ,
141
- WatchFilterPredicate : r .WatchFilterPredicate ,
139
+ Client : r .Client ,
140
+ Tracker : r .Tracker ,
141
+ WatchFilterValue : r .WatchFilterValue ,
142
142
}).SetupWithManager (ctx , mgr , options )
143
143
}
144
144
@@ -151,8 +151,8 @@ type ClusterTopologyReconciler struct {
151
151
152
152
RuntimeClient runtimeclient.Client
153
153
154
- // WatchFilterPredicate is the label selector value used to filter events prior to reconciliation.
155
- WatchFilterPredicate predicates.LabelMatcher
154
+ // WatchFilterValue is the label selector value used to filter events prior to reconciliation.
155
+ WatchFilterValue predicates.LabelMatcher
156
156
157
157
// UnstructuredCachingClient provides a client that forces caching of unstructured objects,
158
158
// thus allowing to optimize reads for templates or provider specific objects in a managed topology.
@@ -165,7 +165,7 @@ func (r *ClusterTopologyReconciler) SetupWithManager(ctx context.Context, mgr ct
165
165
APIReader : r .APIReader ,
166
166
RuntimeClient : r .RuntimeClient ,
167
167
UnstructuredCachingClient : r .UnstructuredCachingClient ,
168
- WatchFilterPredicate : r . WatchFilterPredicate ,
168
+ WatchFilterValue : r . WatchFilterValue ,
169
169
}).SetupWithManager (ctx , mgr , options )
170
170
}
171
171
@@ -177,15 +177,15 @@ type MachineDeploymentTopologyReconciler struct {
177
177
Client client.Client
178
178
// APIReader is used to list MachineSets directly via the API server to avoid
179
179
// race conditions caused by an outdated cache.
180
- APIReader client.Reader
181
- WatchFilterPredicate predicates.LabelMatcher
180
+ APIReader client.Reader
181
+ WatchFilterValue predicates.LabelMatcher
182
182
}
183
183
184
184
func (r * MachineDeploymentTopologyReconciler ) SetupWithManager (ctx context.Context , mgr ctrl.Manager , options controller.Options ) error {
185
185
return (& machinedeploymenttopologycontroller.Reconciler {
186
- Client : r .Client ,
187
- APIReader : r .APIReader ,
188
- WatchFilterPredicate : r .WatchFilterPredicate ,
186
+ Client : r .Client ,
187
+ APIReader : r .APIReader ,
188
+ WatchFilterValue : r .WatchFilterValue ,
189
189
}).SetupWithManager (ctx , mgr , options )
190
190
}
191
191
@@ -197,15 +197,15 @@ type MachineSetTopologyReconciler struct {
197
197
Client client.Client
198
198
// APIReader is used to list MachineSets directly via the API server to avoid
199
199
// race conditions caused by an outdated cache.
200
- APIReader client.Reader
201
- WatchFilterPredicate predicates.LabelMatcher
200
+ APIReader client.Reader
201
+ WatchFilterValue predicates.LabelMatcher
202
202
}
203
203
204
204
func (r * MachineSetTopologyReconciler ) SetupWithManager (ctx context.Context , mgr ctrl.Manager , options controller.Options ) error {
205
205
return (& machinesettopologycontroller.Reconciler {
206
- Client : r .Client ,
207
- APIReader : r .APIReader ,
208
- WatchFilterPredicate : r .WatchFilterPredicate ,
206
+ Client : r .Client ,
207
+ APIReader : r .APIReader ,
208
+ WatchFilterValue : r .WatchFilterValue ,
209
209
}).SetupWithManager (ctx , mgr , options )
210
210
}
211
211
@@ -217,8 +217,8 @@ type ClusterClassReconciler struct {
217
217
// RuntimeClient is a client for calling runtime extensions.
218
218
RuntimeClient runtimeclient.Client
219
219
220
- // WatchFilterPredicate is the label selector value used to filter events prior to reconciliation.
221
- WatchFilterPredicate predicates.LabelMatcher
220
+ // WatchFilterValue is the label selector value used to filter events prior to reconciliation.
221
+ WatchFilterValue predicates.LabelMatcher
222
222
223
223
// UnstructuredCachingClient provides a client that forces caching of unstructured objects,
224
224
// thus allowing to optimize reads for templates or provider specific objects.
@@ -231,6 +231,6 @@ func (r *ClusterClassReconciler) SetupWithManager(ctx context.Context, mgr ctrl.
231
231
APIReader : r .APIReader ,
232
232
RuntimeClient : r .RuntimeClient ,
233
233
UnstructuredCachingClient : r .UnstructuredCachingClient ,
234
- WatchFilterPredicate : r . WatchFilterPredicate ,
234
+ WatchFilterValue : r . WatchFilterValue ,
235
235
}).SetupWithManager (ctx , mgr , options )
236
236
}
0 commit comments