Score plugin for the scheduling framework.
This commit is contained in:
@@ -734,6 +734,10 @@ func deletePod(cs clientset.Interface, podName string, nsName string) error {
|
||||
return cs.CoreV1().Pods(nsName).Delete(podName, metav1.NewDeleteOptions(0))
|
||||
}
|
||||
|
||||
func getPod(cs clientset.Interface, podName string, podNamespace string) (*v1.Pod, error) {
|
||||
return cs.CoreV1().Pods(podNamespace).Get(podName, metav1.GetOptions{})
|
||||
}
|
||||
|
||||
// cleanupPods deletes the given pods and waits for them to be actually deleted.
|
||||
func cleanupPods(cs clientset.Interface, t *testing.T, pods []*v1.Pod) {
|
||||
for _, p := range pods {
|
||||
|
||||
Reference in New Issue
Block a user