kubeadm

package
v0.0.0-...-762e8a6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(key string, k Factory)

func GetCertificatesDirFromConfigFile

func GetCertificatesDirFromConfigFile(configFile string) (string, error)

GetCertificatesDirFromConfigFile returns the certificates directory from the kubeadm config file

func GetKubeadmAPIVersion

func GetKubeadmAPIVersion() string

GetKubeadmAPIVersion returns the kubeadm version via `kubeadm version -o short`

func PhasesCreateCerts

func PhasesCreateCerts(configFile string) ([]byte, error)

func PhasesCreateKubeConfig

func PhasesCreateKubeConfig(configFile string) ([]byte, error)

Types

type Config

type Config struct {
	CertificatesDir   string   `yaml:"certificatesDir"`
	APIServerCertSANs []string `yaml:"apiServerCertSANs,omitempty"`
	CRISocket         string   `yaml:"criSocket,omitempty"`
}

func FetchConfigurationFromConfigFile

func FetchConfigurationFromConfigFile(configFile string) (*Config, error)

FetchConfigurationFromConfigFile returns the configurations from the kubeadm config file

type Factory

type Factory interface {
	RenewCertsCommandArgs() []string
	RenewKubeConfigCommandArgs() []string
	LoadConfigFromFile(f string) (*Config, error)
}

func GetKubeadmFactory

func GetKubeadmFactory(key string) Factory

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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