common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCloudInitMetaData

func GetCloudInitMetaData(name string, params *vsphereconfigv1.VsphereMachineProviderConfig) (string, error)

Returns the startup script for the nodes.

func GetCloudInitUserData

func GetCloudInitUserData(params CloudInitTemplate) (string, error)

Returns the startup script for the nodes.

func GetCloudProviderConfigConfig

func GetCloudProviderConfigConfig(params CloudProviderConfigTemplate) (string, error)

Returns the startup script for the nodes.

func GetMasterStartupScript

func GetMasterStartupScript(params TemplateParams) (string, error)

func GetNodeStartupScript

func GetNodeStartupScript(params TemplateParams) (string, error)

Returns the startup script for the nodes.

func PreloadMasterScript

func PreloadMasterScript(version string, dockerImages []string) (string, error)

PreloadMasterScript returns a script that can be used to preload a master.

func PreloadNodeScript

func PreloadNodeScript(version string, dockerImages []string) (string, error)

PreloadNodeScript returns a script that can be used to preload a master.

Types

type CloudInitMetadataNetworkTemplate

type CloudInitMetadataNetworkTemplate struct {
	Networks []vsphereconfigv1.NetworkSpec
}

type CloudInitMetadataTemplate

type CloudInitMetadataTemplate struct {
	NetworkSpec string
	Hostname    string
}

type CloudInitTemplate

type CloudInitTemplate struct {
	Script              string
	IsMaster            bool
	CloudProviderConfig string
	SSHPublicKey        string
}

type CloudProviderConfigTemplate

type CloudProviderConfigTemplate struct {
	Datacenter   string
	Server       string
	Insecure     bool
	UserName     string
	Password     string
	ResourcePool string
	Datastore    string
	Network      string
}

type TemplateParams

type TemplateParams struct {
	Token        string
	Cluster      *clusterv1.Cluster
	Machine      *clusterv1.Machine
	DockerImages []string
	Preloaded    bool
}

Jump to

Keyboard shortcuts

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