Documentation ¶
Index ¶
- func ComponentPod(container v1.Container, volumes map[string]v1.Volume) v1.Pod
- func ComponentResources(cpu string) v1.ResourceRequirements
- func EtcdProbe(cfg *kubeadmapi.Etcd, port int, certsDir string, CACertName string, ...) *v1.Probe
- func GetAPIServerProbeAddress(endpoint *kubeadmapi.APIEndpoint) string
- func GetControllerManagerProbeAddress(cfg *kubeadmapi.ClusterConfiguration) string
- func GetEtcdProbeAddress(cfg *kubeadmapi.Etcd) string
- func GetExtraParameters(overrides map[string]string, defaults map[string]string) []string
- func GetSchedulerProbeAddress(cfg *kubeadmapi.ClusterConfiguration) string
- func ManifestFilesAreEqual(path1, path2 string) (bool, error)
- func NewVolume(name, path string, pathType *v1.HostPathType) v1.Volume
- func NewVolumeMount(name, path string, readOnly bool) v1.VolumeMount
- func ReadStaticPodFromDisk(manifestPath string) (*v1.Pod, error)
- 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 ComponentResources ¶
func ComponentResources(cpu string) v1.ResourceRequirements
ComponentResources returns the v1.ResourceRequirements object needed for allocating a specified amount of the CPU
func EtcdProbe ¶ added in v1.10.0
func EtcdProbe(cfg *kubeadmapi.Etcd, port int, certsDir string, CACertName string, CertName string, KeyName string) *v1.Probe
EtcdProbe is a helper function for building a shell-based, etcdctl v1.Probe object to healthcheck etcd
func GetAPIServerProbeAddress ¶ added in v1.14.0
func GetAPIServerProbeAddress(endpoint *kubeadmapi.APIEndpoint) string
GetAPIServerProbeAddress returns the probe address for the API server
func GetControllerManagerProbeAddress ¶ added in v1.14.0
func GetControllerManagerProbeAddress(cfg *kubeadmapi.ClusterConfiguration) string
GetControllerManagerProbeAddress returns the kubernetes controller manager probe address
func GetEtcdProbeAddress ¶ added in v1.14.0
func GetEtcdProbeAddress(cfg *kubeadmapi.Etcd) string
GetEtcdProbeAddress returns the etcd probe address
func GetExtraParameters ¶
GetExtraParameters builds a list of flag arguments two string-string maps, one with default, base commands and one with overrides
func GetSchedulerProbeAddress ¶ added in v1.14.0
func GetSchedulerProbeAddress(cfg *kubeadmapi.ClusterConfiguration) string
GetSchedulerProbeAddress returns the kubernetes scheduler probe address
func ManifestFilesAreEqual ¶ added in v1.13.0
ManifestFilesAreEqual compares 2 files. It returns true if their contents are equal, false otherwise
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 ReadStaticPodFromDisk ¶ added in v1.10.3
ReadStaticPodFromDisk reads a static pod file from disk
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.