Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bootstrap ¶
func Bootstrap(bootstrapConfiguration deployments.BootstrapConfiguration, target *deployments.Target) error
Bootstrap initializes the first master node of the cluster
FIXME: being this a part of the go API accept the toplevel directory instead
of using the PWD
func BytesToInitConfiguration ¶
func BytesToInitConfiguration(b []byte) (*kubeadmapi.InitConfiguration, error)
BytesToInitConfiguration converts a byte slice to an internal, defaulted and validated InitConfiguration object. The map may contain many different YAML documents. These YAML documents are parsed one-by-one and well-known ComponentConfig GroupVersionKinds are stored inside of the internal InitConfiguration struct. The resulting InitConfiguration is then dynamically defaulted and validated prior to return.
func LoadInitConfigurationFromFile ¶
func LoadInitConfigurationFromFile(cfgPath string) (*kubeadmapi.InitConfiguration, error)
LoadInitConfigurationFromFile loads a supported versioned InitConfiguration from a file, converts it into internal config, defaults it and verifies it.
Types ¶
This section is empty.