package resource
import "k8s.io/kubernetes/test/e2e/framework/resource"
Index ¶
- func GetReplicasFromRuntimeObject(obj runtime.Object) (int32, error)
- func GetRuntimeObjectForKind(c clientset.Interface, kind schema.GroupKind, ns, name string) (runtime.Object, error)
- func GetSelectorFromRuntimeObject(obj runtime.Object) (labels.Selector, error)
Functions ¶
func GetReplicasFromRuntimeObject ¶
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 ¶
GetSelectorFromRuntimeObject returns the labels for the given object.
Source Files ¶
runtimeobj.go
- Version
- v1.17.13
- Published
- Oct 15, 2020
- Platform
- js/wasm
- Imports
- 14 packages
- Last checked
- 6 minutes ago –
Tools for package owners.