package util
import "k8s.io/kubernetes/pkg/controller/daemon/util"
Index ¶
- func GetPodTemplateWithGeneration(template v1.PodTemplateSpec, generation int64) v1.PodTemplateSpec
- func IsPodUpdated(dsTemplateGeneration int64, pod *v1.Pod) bool
- func SplitByAvailablePods(minReadySeconds int32, pods []*v1.Pod) ([]*v1.Pod, []*v1.Pod)
Functions ¶
func GetPodTemplateWithGeneration ¶
func GetPodTemplateWithGeneration(template v1.PodTemplateSpec, generation int64) v1.PodTemplateSpec
GetPodTemplateWithHash returns copy of provided template with additional label which contains hash of provided template and sets default daemon tolerations.
func IsPodUpdated ¶
IsPodUpdate checks if pod contains label with provided hash
func SplitByAvailablePods ¶
SplitByAvailablePods splits provided daemon set pods by availabilty
Source Files ¶
daemonset_util.go
- Version
- v1.6.5-beta.0
- Published
- May 15, 2017
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 1 minute ago –
Tools for package owners.