File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/book/src/reference/watching-resources/testdata/external-indexed-field Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -184,13 +184,13 @@ func (r *ConfigDeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error {
184
184
we just need to loop through the list and create a reconcile request for each one.
185
185
If an error occurs fetching the list, or no `ConfigDeployments` are found, then no reconcile requests will be returned.
186
186
*/
187
- func (r * ConfigDeploymentReconciler ) findObjectsForConfigMap (configMap client.Object ) []reconcile.Request {
187
+ func (r * ConfigDeploymentReconciler ) findObjectsForConfigMap (ctx context. Context , configMap client.Object ) []reconcile.Request {
188
188
attachedConfigDeployments := & appsv1.ConfigDeploymentList {}
189
189
listOps := & client.ListOptions {
190
190
FieldSelector : fields .OneTermEqualSelector (configMapField , configMap .GetName ()),
191
191
Namespace : configMap .GetNamespace (),
192
192
}
193
- err := r .List (context . TODO () , attachedConfigDeployments , listOps )
193
+ err := r .List (ctx , attachedConfigDeployments , listOps )
194
194
if err != nil {
195
195
return []reconcile.Request {}
196
196
}
@@ -205,4 +205,4 @@ func (r *ConfigDeploymentReconciler) findObjectsForConfigMap(configMap client.Ob
205
205
}
206
206
}
207
207
return requests
208
- }
208
+ }
You can’t perform that action at this time.
0 commit comments