# Functions
ComponentPod returns a Pod object from the container and volume specifications.
ComponentResources returns the v1.ResourceRequirements object needed for allocating a specified amount of the CPU.
GetAPIServerProbeAddress returns the probe address for the API server.
GetControllerManagerProbeAddress returns the kubernetes controller manager probe address.
GetEtcdProbeEndpoint takes a kubeadm Etcd configuration object and attempts to parse the first URL in the listen-metrics-urls argument, returning an etcd probe hostname, port and scheme.
GetExtraParameters builds a list of flag arguments two string-string maps, one with default, base commands and one with overrides.
GetSchedulerProbeAddress returns the kubernetes scheduler probe address.
KustomizeStaticPod applies patches defined in kustomizeDir to a static Pod manifest.
LivenessProbe creates a Probe object with a HTTPGet handler.
ManifestFilesAreEqual compares 2 files.
NewVolume creates a v1.Volume with a hostPath mount to the specified location.
NewVolumeMount creates a v1.VolumeMount to the specified location.
ReadStaticPodFromDisk reads a static pod file from disk.
VolumeMapToSlice returns a slice of volumes from a map's values.
VolumeMountMapToSlice returns a slice of volumes from a map's values.
WriteStaticPodToDisk writes a static pod file to disk.