Skip to content

Commit

Permalink
fix go lint test error
Browse files Browse the repository at this point in the history
Signed-off-by: SherlockShemol <[email protected]>
  • Loading branch information
SherlockShemol committed Oct 19, 2024
1 parent a217288 commit 110efcf
Show file tree
Hide file tree
Showing 3 changed files with 680 additions and 680 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ type Controller struct {
// map to record the pods that are recreated
recreatedPods sync.Map

fl_selector labels.Selector
flSelector labels.Selector

aggServiceHost string

Expand Down Expand Up @@ -325,8 +325,8 @@ func (c *Controller) sync(key string) (bool, error) {
return true, nil
}

c.fl_selector, _ = runtime.GenerateSelector(&job)
pods, err := c.podStore.Pods(job.Namespace).List(c.fl_selector)
c.flSelector, _ = runtime.GenerateSelector(&job)
pods, err := c.podStore.Pods(job.Namespace).List(c.flSelector)
if err != nil {
return false, err
}
Expand Down Expand Up @@ -766,7 +766,7 @@ func (c *Controller) updateJob(old, cur interface{}) {
}

if oldJob.Generation != curJob.Generation {
pods, err := c.podStore.Pods(curJob.Namespace).List(c.fl_selector)
pods, err := c.podStore.Pods(curJob.Namespace).List(c.flSelector)
if err != nil {
klog.Errorf("Failed to list pods: %v", err)
}
Expand Down Expand Up @@ -806,4 +806,4 @@ func (c *Controller) createService(job *sednav1.FederatedLearningJob) (err error
return err
}
return nil
}
}
Loading

0 comments on commit 110efcf

Please sign in to comment.