kubernetesk8s.io/kubernetes/test/e2e/framework/resource Index | Files

package resource

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

Index

Functions

func GetReplicasFromRuntimeObject

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

GetReplicasFromRuntimeObject returns the number of replicas for the given object.

func GetRuntimeObjectForKind

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

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

GetSelectorFromRuntimeObject returns the labels for the given object.

Source Files

runtimeobj.go

Version
v1.17.8
Published
Jun 26, 2020
Platform
js/wasm
Imports
14 packages
Last checked
9 minutes ago

Tools for package owners.