package pod
import "k8s.io/kubernetes/pkg/util/pod"
Package pod provides utilities to work with Kubernetes pod and pod templates.
Index ¶
- func Filter(podList *api.PodList, f func(api.Pod) bool) []api.Pod
- func GetPodTemplateSpecHash(template api.PodTemplateSpec) uint32
- func UpdatePodWithRetries(podClient unversionedcore.PodInterface, pod *api.Pod, applyUpdate updatePodFunc) (*api.Pod, bool, error)
Functions ¶
func Filter ¶
Filter uses the input function f to filter the given pod list, and return the filtered pods
func GetPodTemplateSpecHash ¶
func GetPodTemplateSpecHash(template api.PodTemplateSpec) uint32
func UpdatePodWithRetries ¶
func UpdatePodWithRetries(podClient unversionedcore.PodInterface, pod *api.Pod, applyUpdate updatePodFunc) (*api.Pod, bool, error)
UpdatePodWithRetries updates a pod with given applyUpdate function. Note that pod not found error is ignored. The returned bool value can be used to tell if the pod is actually updated.
Source Files ¶
doc.go pod.go
- Version
- v1.4.0-beta.5
- Published
- Sep 15, 2016
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 13 minutes ago –
Tools for package owners.