package util

import "k8s.io/kubernetes/pkg/controller/daemon/util"

Index

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

func IsPodUpdated

func IsPodUpdated(dsTemplateGeneration int64, pod *v1.Pod) bool

IsPodUpdate checks if pod contains label with provided hash

func SplitByAvailablePods

func SplitByAvailablePods(minReadySeconds int32, pods []*v1.Pod) ([]*v1.Pod, []*v1.Pod)

SplitByAvailablePods splits provided daemon set pods by availabilty

Source Files

daemonset_util.go

Version
v1.6.0-rc.1
Published
Mar 24, 2017
Platform
js/wasm
Imports
6 packages
Last checked
3 minutes ago

Tools for package owners.