package util
import "k8s.io/kubernetes/pkg/controller/daemon/util"
Index ¶
- func CreatePodTemplate(template v1.PodTemplateSpec, generation int64, hash string) v1.PodTemplateSpec
- func IsPodUpdated(dsTemplateGeneration int64, pod *v1.Pod, hash string) bool
- func SplitByAvailablePods(minReadySeconds int32, pods []*v1.Pod) ([]*v1.Pod, []*v1.Pod)
Functions ¶
func CreatePodTemplate ¶
func CreatePodTemplate(template v1.PodTemplateSpec, generation int64, hash string) v1.PodTemplateSpec
CreatePodTemplate returns copy of provided template with additional label which contains templateGeneration (for backward compatibility), hash of provided template and sets default daemon tolerations.
func IsPodUpdated ¶
IsPodUpdate checks if pod contains label value that either matches templateGeneration or hash
func SplitByAvailablePods ¶
SplitByAvailablePods splits provided daemon set pods by availabilty
Source Files ¶
daemonset_util.go
- Version
- v1.7.0-rc.1
- Published
- Jun 24, 2017
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 1 minute ago –
Tools for package owners.