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.5.7
- Published
- Apr 27, 2017
- Platform
- windows/amd64
- Imports
- 10 packages
- Last checked
- 34 minutes ago –
Tools for package owners.