Skip to content

Commit

Permalink
reset any node designation in pod specification
Browse files Browse the repository at this point in the history
  • Loading branch information
ingvagabund committed Dec 3, 2016
1 parent 3fbcb69 commit 35dd89d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/framework/simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ func (c *ClusterCapacity) Update(pod *api.Pod, podCondition *api.PodCondition, s

func (c *ClusterCapacity) nextPod() error {
pod := *c.simulatedPod
// reset any node designation set
pod.Spec.NodeName = ""
// use simulated pod name with an index to construct the name
pod.ObjectMeta.Name = fmt.Sprintf("%v-%v", c.simulatedPod.Name, c.simulated)

Expand Down

0 comments on commit 35dd89d

Please sign in to comment.