Skip to content

Commit

Permalink
feat: BroadcastJob Controller list pods add the disableDeepCopy optio…
Browse files Browse the repository at this point in the history
…ns (openkruise#1593)

Signed-off-by: Prepmachine4 <prepmachine4@gmail.com>
  • Loading branch information
Prepmachine4 committed Aug 6, 2024
1 parent 5fac1ff commit a59c3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/broadcastjob/broadcastjob_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func (r *ReconcileBroadcastJob) Reconcile(_ context.Context, request reconcile.R
Namespace: request.Namespace,
LabelSelector: labels.SelectorFromSet(labelsAsMap(job)),
}
err = r.List(context.TODO(), podList, listOptions)
err = r.List(context.TODO(), podList, listOptions, utilclient.DisableDeepCopy)
if err != nil {
klog.ErrorS(err, "Failed to get podList for BroadcastJob", "broadcastJob", klog.KObj(job))
return reconcile.Result{}, err
Expand Down

0 comments on commit a59c3e1

Please sign in to comment.