# Functions
AddOrUpdateDaemonPodTolerations apply necessary tolerations to DeamonSet Pods, e.g.
CreatePodTemplate returns copy of provided template with additional label which contains templateGeneration (for backward compatibility), hash of provided template and sets default daemon tolerations.
GetTargetNodeName get the target node name of DaemonSet pods.
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.
ReplaceDaemonSetPodNodeNameNodeAffinity replaces the RequiredDuringSchedulingIgnoredDuringExecution NodeAffinity of the given affinity with a new NodeAffinity that selects the given nodeName.
SplitByAvailablePods splits provided daemon set pods by availability.