Skip to content

Commit f74cbf4

Browse files
authored
Merge pull request #1132 from Adirio/deprecation
Deprecated use removal from the book
2 parents 51b5360 + 842d71e commit f74cbf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/book/src/cronjob-tutorial/testdata/project/controllers/cronjob_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (r *CronJobReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
136136
set the namespace and field match (which is actually an index lookup that we set up below).
137137
*/
138138
var childJobs kbatch.JobList
139-
if err := r.List(ctx, &childJobs, client.InNamespace(req.Namespace), client.MatchingField(jobOwnerKey, req.Name)); err != nil {
139+
if err := r.List(ctx, &childJobs, client.InNamespace(req.Namespace), client.MatchingFields{jobOwnerKey: req.Name}); err != nil {
140140
log.Error(err, "unable to list child Jobs")
141141
return ctrl.Result{}, err
142142
}

0 commit comments

Comments
 (0)