helper

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupTemplateOutput added in v1.1.6

func CleanupTemplateOutput(output string) (string, error)

CleanupTemplateOutput postprocesses the output of the template processing. Those may exist due to the working of template functions like those of the sprig package or template condition.

func CloudProviderFlags added in v1.1.1

func CloudProviderFlags(cpName string, external bool) (string, error)

CloudProviderFlags returns --cloud-provider and --cloud-config flags

func ContainerRuntimeHealthCheckSystemdUnit added in v0.9.5

func ContainerRuntimeHealthCheckSystemdUnit() string

ContainerRuntimeHealthCheckSystemdUnit container-runtime health checking systemd unit

func DockerConfig added in v1.2.0

func DockerConfig(insecureRegistries, registryMirrors []string) (string, error)

DockerConfig returns the docker daemon.json.

func DownloadBinariesScript added in v0.9.5

func DownloadBinariesScript(kubeletVersion string, downloadKubelet bool) (string, error)

DownloadBinariesScript returns the script which is responsible to download all required binaries. Extracted into a dedicated function so we can use it to prepare custom images: TODO: Use it to prepare custom images...

func GetCACert

func GetCACert(kubeconfig *clientcmdapi.Config) (string, error)

func GetServerAddressFromKubeconfig

func GetServerAddressFromKubeconfig(kubeconfig *clientcmdapi.Config) (string, error)

func JournalDConfig added in v0.9.5

func JournalDConfig() string

JournalDConfig returns the journal config preferable on every node

func KernelModules added in v0.9.5

func KernelModules() string

KernelModules returns the list of kernel modules required for a kubernetes worker node

func KernelSettings added in v0.9.5

func KernelSettings() string

KernelSettings returns the list of kernel settings required for a kubernetes worker node inotify changes according to https://github.com/kubernetes/kubernetes/issues/10421 - better than letting the kubelet die

func KubeletFlags added in v0.9.5

func KubeletFlags(version, cloudProvider, hostname string, dnsIPs []net.IP, external bool, pauseImage string) (string, error)

KubeletFlags returns the kubelet flags

func KubeletHealthCheckSystemdUnit added in v0.9.5

func KubeletHealthCheckSystemdUnit() string

KubeletHealthCheckSystemdUnit kubelet health checking systemd unit

func KubeletSystemdUnit added in v0.9.5

func KubeletSystemdUnit(kubeletVersion, cloudProvider, hostname string, dnsIPs []net.IP, external bool, pauseImage string) (string, error)

KubeletSystemdUnit returns the systemd unit for the kubelet

func ProxyEnvironment added in v1.2.0

func ProxyEnvironment(proxy, noProxy string) string

func StringifyKubeconfig

func StringifyKubeconfig(kubeconfig *clientcmdapi.Config) (string, error)

StringifyKubeconfig marshals a kubeconfig to its text form

func TxtFuncMap added in v0.9.5

func TxtFuncMap() template.FuncMap

TxtFuncMap returns an aggregated template function map. Currently (custom functions + sprig)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL