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 (#1593) (#1696)

Signed-off-by: Prepmachine4 <[email protected]>
  • Loading branch information
Prepmachine4 authored and zerunhu committed Sep 2, 2024
1 parent 610f3b2 commit 37b22f7
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 37b22f7

Please sign in to comment.