util

package
v1.9.9-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePodTemplate added in v1.7.0

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

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

IsPodUpdate checks if pod contains label value that either matches templateGeneration or hash

func SplitByAvailablePods

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

SplitByAvailablePods splits provided daemon set pods by availabilty

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL