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

package resource

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


Package Files


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.

Package resource imports 14 packages (graph) and is imported by 36 packages. Updated 2019-06-22. Refresh now. Tools for package owners.