Changing a few remaining instances of passing pods around by value. I
avoided changing api.PodList.Items to []*api.Pod.
This commit is contained in:
@@ -23,11 +23,11 @@ import (
|
||||
|
||||
type Scheduler struct {
|
||||
Err error
|
||||
Pod api.Pod
|
||||
Pod *api.Pod
|
||||
Machine string
|
||||
}
|
||||
|
||||
func (s *Scheduler) Schedule(pod api.Pod, lister scheduler.MinionLister) (string, error) {
|
||||
func (s *Scheduler) Schedule(pod *api.Pod, lister scheduler.MinionLister) (string, error) {
|
||||
s.Pod = pod
|
||||
return s.Machine, s.Err
|
||||
}
|
||||
|
Reference in New Issue
Block a user