cloudinit

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: Apache-2.0 Imports: 14 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyMetadata

func ApplyMetadata(vm *v1.VirtualMachine)

Place metadata auto-generation code in here

func GenerateLocalData

func GenerateLocalData(domain string, namespace string, spec *v1.CloudInitSpec) error

func GetCloudInitSpec

func GetCloudInitSpec(vm *v1.VirtualMachine) *v1.CloudInitSpec

func GetDomainBasePath

func GetDomainBasePath(domain string, namespace string) string

func ListVmWithLocalData

func ListVmWithLocalData() ([]*v1.VirtualMachine, error)

Lists all vms cloud-init has local data for

func MapCloudInitDisks

func MapCloudInitDisks(vm *v1.VirtualMachine) (*v1.VirtualMachine, error)

This is called right before a VM is defined with libvirt. If the cloud-init type requires altering the domain, this is the place to do that.

func RemoveLocalData

func RemoveLocalData(domain string, namespace string) error

func ResolveSecrets

func ResolveSecrets(spec *v1.CloudInitSpec, namespace string, clientset kubecli.KubevirtClient) error

func SetIsoCreationFunction

func SetIsoCreationFunction(isoFunc IsoCreationFunc)

The unit test suite uses this function

func SetLocalDataOwner

func SetLocalDataOwner(user string)

The unit test suite uses this function

func SetLocalDirectory

func SetLocalDirectory(dir string) error

func ValidateArgs

func ValidateArgs(spec *v1.CloudInitSpec) error

Types

type IsoCreationFunc

type IsoCreationFunc func(isoOutFile string, inFiles []string) error

Jump to

Keyboard shortcuts

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