Documentation ¶
Index ¶
- func ApplyMetadata(vm *v1.VirtualMachine)
- func GenerateLocalData(domain string, namespace string, spec *v1.CloudInitSpec) error
- func GetCloudInitSpec(vm *v1.VirtualMachine) *v1.CloudInitSpec
- func GetDomainBasePath(domain string, namespace string) string
- func ListVmWithLocalData() ([]*v1.VirtualMachine, error)
- func MapCloudInitDisks(vm *v1.VirtualMachine) (*v1.VirtualMachine, error)
- func RemoveLocalData(domain string, namespace string) error
- func ResolveSecrets(spec *v1.CloudInitSpec, namespace string, clientset kubecli.KubevirtClient) error
- func SetIsoCreationFunction(isoFunc IsoCreationFunc)
- func SetLocalDataOwner(user string)
- func SetLocalDirectory(dir string) error
- func ValidateArgs(spec *v1.CloudInitSpec) error
- type IsoCreationFunc
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 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 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 SetLocalDirectory ¶
func ValidateArgs ¶
func ValidateArgs(spec *v1.CloudInitSpec) error
Types ¶
type IsoCreationFunc ¶
Click to show internal directories.
Click to hide internal directories.