Skip to content

Commit

Permalink
delete unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Eikykun authored and shaofan-hs committed Jul 9, 2024
1 parent 24f2df2 commit b7bcb2b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/controllers/utils/poddecoration/strategy/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,16 +305,14 @@ func (pm *podDecorationManager) updateSelectedPods(ctx context.Context, pd *apps
pm.mu.Lock()
defer pm.mu.Unlock()
pm.latestPodDecoration = pd.DeepCopy()
newPods := map[string]*corev1.Pod{}
newEffectivePods := map[string]*podInfo{}
existInstanceId := sets.NewString()
oldPods := pm.effectivePods
collaSets := sets.NewString()
for i, pod := range pods {
for _, pod := range pods {
if !IsActive(pod) {
continue
}
newPods[pod.Name] = pods[i]
newPodInfo, err := getter.buildPodInfo(pod, pm.latestPodDecoration)
if err != nil {
return err
Expand Down

0 comments on commit b7bcb2b

Please sign in to comment.