package
1.11.0-alpha.1
Repository: https://github.com/ceshihao/kubernetes.git
Documentation: pkg.go.dev
# Functions
ComponentPod returns a Pod object from the container and volume specifications.
ComponentProbe is a helper function building a ready v1.Probe object from some simple parameters.
ComponentResources returns the v1.ResourceRequirements object needed for allocating a specified amount of the CPU.
EtcdProbe is a helper function for building a shell-based, etcdctl v1.Probe object to healthcheck etcd.
GetExtraParameters builds a list of flag arguments two string-string maps, one with default, base commands and one with overrides.
GetProbeAddress returns an IP address or 127.0.0.1 to use for liveness probes in static pod manifests.
NewVolume creates a v1.Volume with a hostPath mount to the specified location.
NewVolumeMount creates a v1.VolumeMount to the specified location.
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.