Skip to content

Commit bedcd36

Browse files
committed
remove the setter as we got the pointer already
Signed-off-by: Ryan Zhang <[email protected]>
1 parent 3c57183 commit bedcd36

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/scheduler/framework/framework.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,6 @@ func (f *framework) updatePolicySnapshotStatusFromBindings(
796796
policyStatus.ClusterDecisions = newDecisions
797797
policyStatus.ObservedCRPGeneration = observedCRPGeneration
798798
meta.SetStatusCondition(&policyStatus.Conditions, newCondition)
799-
policy.SetPolicySnapshotStatus(policyStatus)
800799
if err := f.client.Status().Update(ctx, policy, &client.SubResourceUpdateOptions{}); err != nil {
801800
klog.ErrorS(err, "Failed to update policy snapshot status", "clusterSchedulingPolicySnapshot", policyRef)
802801
return controller.NewAPIServerError(false, err)
@@ -1390,7 +1389,6 @@ func (f *framework) updatePolicySnapshotStatusForPickFixedPlacementType(
13901389
policyStatus.ClusterDecisions = newDecisions
13911390
policyStatus.ObservedCRPGeneration = observedCRPGeneration
13921391
meta.SetStatusCondition(&policyStatus.Conditions, newCondition)
1393-
policy.SetPolicySnapshotStatus(policyStatus)
13941392
if err := f.client.Status().Update(ctx, policy, &client.SubResourceUpdateOptions{}); err != nil {
13951393
klog.ErrorS(err, "Failed to update policy snapshot status", "clusterSchedulingPolicySnapshot", policyRef)
13961394
return controller.NewAPIServerError(false, err)

0 commit comments

Comments
 (0)