package
1.11.0-alpha.1
Repository: https://github.com/ceshihao/kubernetes.git
Documentation: pkg.go.dev
# Functions
AppendNoScheduleTolerationIfNotExist appends unschedulable toleration to `.spec` if not exist; otherwise, no changes to `.spec.tolerations`.
CreatePodTemplate returns copy of provided template with additional label which contains templateGeneration (for backward compatibility), hash of provided template and sets default daemon tolerations.
GetTemplateGeneration gets the template generation associated with a v1.DaemonSet by extracting it from the deprecated annotation.
IsPodUpdated checks if pod contains label value that either matches templateGeneration or hash.
ReplaceDaemonSetPodHostnameNodeAffinity replaces the 'kubernetes.io/hostname' NodeAffinity term with the given "nodeName" in the "affinity" terms.
SplitByAvailablePods splits provided daemon set pods by availability.