Skip to content

Commit

Permalink
remove unused function addStorageLimit
Browse files Browse the repository at this point in the history
In package `plugin/pkg/scheduler/algorithm/predicates` remove unused
unexported function `addStorageLimit`.
  • Loading branch information
surajssd committed Sep 29, 2017
1 parent 9a7378f commit bf25a27
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions plugin/pkg/scheduler/algorithm/predicates/predicates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,25 +118,6 @@ func newResourcePod(usage ...schedulercache.Resource) *v1.Pod {
}
}

func addStorageLimit(pod *v1.Pod, sizeLimit int64, medium v1.StorageMedium) *v1.Pod {
return &v1.Pod{
Spec: v1.PodSpec{
Containers: pod.Spec.Containers,
Volumes: []v1.Volume{
{
Name: "emptyDirVolumeName",
VolumeSource: v1.VolumeSource{
EmptyDir: &v1.EmptyDirVolumeSource{
SizeLimit: resource.NewQuantity(sizeLimit, resource.BinarySI),
Medium: medium,
},
},
},
},
},
}
}

func newResourceInitPod(pod *v1.Pod, usage ...schedulercache.Resource) *v1.Pod {
pod.Spec.InitContainers = newResourcePod(usage...).Spec.Containers
return pod
Expand Down

0 comments on commit bf25a27

Please sign in to comment.