type ShutdownFunc …
func StartScheduler(ctx context.Context, clientSet clientset.Interface, kubeConfig *restclient.Config, cfg *kubeschedulerconfig.KubeSchedulerConfiguration, outOfTreePluginRegistry frameworkruntime.Registry) (*scheduler.Scheduler, informers.SharedInformerFactory) { … }
func CreateResourceClaimController(ctx context.Context, tb ktesting.TB, clientSet clientset.Interface, informerFactory informers.SharedInformerFactory) func() { … }
func StartFakePVController(ctx context.Context, clientSet clientset.Interface, informerFactory informers.SharedInformerFactory) { … }
func CreateGCController(ctx context.Context, tb ktesting.TB, restConfig restclient.Config, informerSet informers.SharedInformerFactory) func() { … }
func CreateNamespaceController(ctx context.Context, tb ktesting.TB, restConfig restclient.Config, informerSet informers.SharedInformerFactory) func() { … }
type TestContext …
type RoundTripWrapper …
type roundTripWrapper …
func (r roundTripWrapper) RoundTrip(req *http.Request) (*http.Response, error) { … }
var _ …
func CleanupNodes(cs clientset.Interface, t *testing.T) { … }
func PodDeleted(ctx context.Context, c clientset.Interface, podNamespace, podName string) wait.ConditionWithContextFunc { … }
func PodsCleanedUp(ctx context.Context, c clientset.Interface, namespace string) wait.ConditionWithContextFunc { … }
func SyncSchedulerInformerFactory(testCtx *TestContext) { … }
func CleanupTest(t *testing.T, testCtx *TestContext) { … }
func RemovePodFinalizersInNamespace(ctx context.Context, cs clientset.Interface, t *testing.T, ns string) { … }
func RemovePodFinalizers(ctx context.Context, cs clientset.Interface, t *testing.T, pods ...v1.Pod) { … }
func CleanupPods(ctx context.Context, cs clientset.Interface, t *testing.T, pods []*v1.Pod) { … }
func AddTaintToNode(cs clientset.Interface, nodeName string, taint v1.Taint) error { … }
func RemoveTaintOffNode(cs clientset.Interface, nodeName string, taint v1.Taint) error { … }
func WaitForNodeTaints(ctx context.Context, cs clientset.Interface, node *v1.Node, taints []v1.Taint) error { … }
func NodeTainted(ctx context.Context, cs clientset.Interface, nodeName string, taints []v1.Taint) wait.ConditionWithContextFunc { … }
func NodeReadyStatus(conditions []v1.NodeCondition) (v1.ConditionStatus, error) { … }
func GetTolerationSeconds(tolerations []v1.Toleration) (int64, error) { … }
func NodeCopyWithConditions(node *v1.Node, conditions []v1.NodeCondition) *v1.Node { … }
func UpdateNodeStatus(cs clientset.Interface, node *v1.Node) error { … }
func InitTestAPIServer(t *testing.T, nsPrefix string, admission admission.Interface) *TestContext { … }
func WaitForSchedulerCacheCleanup(ctx context.Context, sched *scheduler.Scheduler, t *testing.T) { … }
func InitTestScheduler(
t *testing.T,
testCtx *TestContext,
) *TestContext { … }
func InitTestSchedulerWithOptions(
t *testing.T,
testCtx *TestContext,
resyncPeriod time.Duration,
opts ...scheduler.Option,
) *TestContext { … }
func WaitForPodToScheduleWithTimeout(cs clientset.Interface, pod *v1.Pod, timeout time.Duration) error { … }
func WaitForPodToSchedule(cs clientset.Interface, pod *v1.Pod) error { … }
func PodScheduled(c clientset.Interface, podNamespace, podName string) wait.ConditionWithContextFunc { … }
func InitDisruptionController(t *testing.T, testCtx *TestContext) *disruption.DisruptionController { … }
func InitTestSchedulerWithNS(t *testing.T, nsPrefix string, opts ...scheduler.Option) *TestContext { … }
func InitTestDisablePreemption(t *testing.T, nsPrefix string) *TestContext { … }
func WaitForReflection(ctx context.Context, t *testing.T, nodeLister corelisters.NodeLister, key string,
passFunc func(n interface{ … }
func UpdateNode(cs clientset.Interface, node *v1.Node) (*v1.Node, error) { … }
func CreateNode(cs clientset.Interface, node *v1.Node) (*v1.Node, error) { … }
func createNodes(cs clientset.Interface, prefix string, wrapper *st.NodeWrapper, numNodes int) ([]*v1.Node, error) { … }
func CreateAndWaitForNodesInCache(testCtx *TestContext, prefix string, wrapper *st.NodeWrapper, numNodes int) ([]*v1.Node, error) { … }
func WaitForNodesInCache(ctx context.Context, sched *scheduler.Scheduler, nodeCount int) error { … }
type PausePodConfig …
func InitPausePod(conf *PausePodConfig) *v1.Pod { … }
func CreatePausePod(cs clientset.Interface, p *v1.Pod) (*v1.Pod, error) { … }
func CreatePausePodWithResource(cs clientset.Interface, podName string,
nsName string, res *v1.ResourceList) (*v1.Pod, error) { … }
func CreatePVC(cs clientset.Interface, pvc *v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error) { … }
func CreatePV(cs clientset.Interface, pv *v1.PersistentVolume) (*v1.PersistentVolume, error) { … }
func DeletePVC(cs clientset.Interface, pvcName string, nsName string) error { … }
func DeletePV(cs clientset.Interface, pvName string) error { … }
func RunPausePod(cs clientset.Interface, pod *v1.Pod) (*v1.Pod, error) { … }
type PodWithContainersConfig …
func InitPodWithContainers(cs clientset.Interface, conf *PodWithContainersConfig) *v1.Pod { … }
func RunPodWithContainers(cs clientset.Interface, pod *v1.Pod) (*v1.Pod, error) { … }
func PodIsGettingEvicted(c clientset.Interface, podNamespace, podName string) wait.ConditionWithContextFunc { … }
func PodScheduledIn(c clientset.Interface, podNamespace, podName string, nodeNames []string) wait.ConditionWithContextFunc { … }
func PodUnschedulable(c clientset.Interface, podNamespace, podName string) wait.ConditionWithContextFunc { … }
func PodSchedulingError(c clientset.Interface, podNamespace, podName string) wait.ConditionWithContextFunc { … }
func PodSchedulingGated(ctx context.Context, c clientset.Interface, podNamespace, podName string) wait.ConditionWithContextFunc { … }
func WaitForPodUnschedulableWithTimeout(ctx context.Context, cs clientset.Interface, pod *v1.Pod, timeout time.Duration) error { … }
func WaitForPodUnschedulable(ctx context.Context, cs clientset.Interface, pod *v1.Pod) error { … }
func WaitForPodSchedulingGated(ctx context.Context, cs clientset.Interface, pod *v1.Pod, timeout time.Duration) error { … }
func WaitForPDBsStable(testCtx *TestContext, pdbs []*policy.PodDisruptionBudget, pdbPodNum []int32) error { … }
func WaitCachedPodsStable(testCtx *TestContext, pods []*v1.Pod) error { … }
func DeletePod(cs clientset.Interface, podName string, nsName string) error { … }
func GetPod(cs clientset.Interface, podName string, podNamespace string) (*v1.Pod, error) { … }
func CreateNamespacesWithLabels(cs clientset.Interface, namespaces []string, labels map[string]string) error { … }
func timeout(ctx context.Context, d time.Duration, f func()) error { … }
func NextPodOrDie(t *testing.T, testCtx *TestContext) *schedulerframework.QueuedPodInfo { … }