Documentation ¶
Index ¶
- func ComponentPod(container v1.Container, volumes map[string]v1.Volume) v1.Pod
- func ComponentProbe(cfg *kubeadmapi.MasterConfiguration, componentName string, port int, ...) *v1.Probe
- func ComponentResources(cpu string) v1.ResourceRequirements
- func GetExtraParameters(overrides map[string]string, defaults map[string]string) []string
- func GetProbeAddress(cfg *kubeadmapi.MasterConfiguration, componentName string) string
- func NewVolume(name, path string, pathType *v1.HostPathType) v1.Volume
- func NewVolumeMount(name, path string, readOnly bool) v1.VolumeMount
- func VolumeMapToSlice(volumes map[string]v1.Volume) []v1.Volume
- func VolumeMountMapToSlice(volumeMounts map[string]v1.VolumeMount) []v1.VolumeMount
- func WriteStaticPodToDisk(componentName, manifestDir string, pod v1.Pod) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComponentPod ¶
ComponentPod returns a Pod object from the container and volume specifications
func ComponentProbe ¶
func ComponentProbe(cfg *kubeadmapi.MasterConfiguration, componentName string, port int, path string, scheme v1.URIScheme) *v1.Probe
ComponentProbe is a helper function building a ready v1.Probe object from some simple parameters
func ComponentResources ¶
func ComponentResources(cpu string) v1.ResourceRequirements
ComponentResources returns the v1.ResourceRequirements object needed for allocating a specified amount of the CPU
func GetExtraParameters ¶
GetExtraParameters builds a list of flag arguments two string-string maps, one with default, base commands and one with overrides
func GetProbeAddress ¶ added in v1.9.1
func GetProbeAddress(cfg *kubeadmapi.MasterConfiguration, componentName string) string
GetProbeAddress returns an IP address or 127.0.0.1 to use for liveness probes in static pod manifests.
func NewVolume ¶
func NewVolume(name, path string, pathType *v1.HostPathType) v1.Volume
NewVolume creates a v1.Volume with a hostPath mount to the specified location
func NewVolumeMount ¶
func NewVolumeMount(name, path string, readOnly bool) v1.VolumeMount
NewVolumeMount creates a v1.VolumeMount to the specified location
func VolumeMapToSlice ¶ added in v1.9.1
VolumeMapToSlice returns a slice of volumes from a map's values
func VolumeMountMapToSlice ¶ added in v1.9.1
func VolumeMountMapToSlice(volumeMounts map[string]v1.VolumeMount) []v1.VolumeMount
VolumeMountMapToSlice returns a slice of volumes from a map's values
Types ¶
This section is empty.