kubernetes: k8s.io/kubernetes/test/e2e/framework/resource Index | Files

package resource

import "k8s.io/kubernetes/test/e2e/framework/resource"

Index

Package Files

resources.go runtimeobj.go

func DeleteResourceAndWaitForGC Uses

func DeleteResourceAndWaitForGC(c clientset.Interface, kind schema.GroupKind, ns, name string) error

DeleteResourceAndWaitForGC deletes only given resource and waits for GC to delete the pods.

func GetReplicasFromRuntimeObject Uses

func GetReplicasFromRuntimeObject(obj runtime.Object) (int32, error)

GetReplicasFromRuntimeObject returns the number of replicas for the given object.

func GetRuntimeObjectForKind Uses

func GetRuntimeObjectForKind(c clientset.Interface, kind schema.GroupKind, ns, name string) (runtime.Object, error)

GetRuntimeObjectForKind returns a runtime.Object based on its GroupKind, namespace and name.

func GetSelectorFromRuntimeObject Uses

func GetSelectorFromRuntimeObject(obj runtime.Object) (labels.Selector, error)

GetSelectorFromRuntimeObject returns the labels for the given object.

func ScaleResource Uses

func ScaleResource(
    clientset clientset.Interface,
    scalesGetter scaleclient.ScalesGetter,
    ns, name string,
    size uint,
    wait bool,
    kind schema.GroupKind,
    gvr schema.GroupVersionResource,
) error

ScaleResource scales resource to the given size.

func WaitForControlledPods Uses

func WaitForControlledPods(c clientset.Interface, ns, name string, kind schema.GroupKind) (pods *v1.PodList, err error)

WaitForControlledPods waits up to podListTimeout for getting pods of the specified controller name and return them.

func WaitForControlledPodsRunning Uses

func WaitForControlledPodsRunning(c clientset.Interface, ns, name string, kind schema.GroupKind) error

WaitForControlledPodsRunning waits up to 10 minutes for pods to become Running.

Package resource imports 20 packages (graph) and is imported by 54 packages. Updated 2020-04-11. Refresh now. Tools for package owners.