node

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath(role deployments.Role, target *deployments.Target) string

ConfigPath returns the configuration path for a specific Target; if this file does not exist, it will be created out of the template file

FIXME: being this a part of the go API accept the toplevel directory instead of

using the PWD

FIXME: error handling with `github.com/pkg/errors`; return errors

func Join

func Join(joinConfiguration deployments.JoinConfiguration, target *deployments.Target)

Join joins a new machine to the cluster. The role of the machine will be provided by the JoinConfiguration, and will target Target node

FIXME: being this a part of the go API accept the toplevel directory instead of

using the PWD

FIXME: error handling with `github.com/pkg/errors`; return errors

func LoadJoinConfigurationFromFile added in v0.2.0

func LoadJoinConfigurationFromFile(cfgPath string) (*kubeadmapi.JoinConfiguration, error)

LoadJoinConfigurationFromFile loads versioned JoinConfiguration from file, converts it to internal, defaults and validates it

Types

This section is empty.

Jump to

Keyboard shortcuts

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