libvirt

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package libvirt contains libvirt-specific structures for installer configuration and management.

Index

Constants

View Source
const Name string = "libvirt"

Name is the name for the libvirt platform.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnsmasqOption added in v0.9.2

type DnsmasqOption struct {
	// The dnsmasq option name. A full list of options and an explanation for
	// each can be found in /etc/dnsmasq.conf
	//
	// +optional
	Name string `json:"name,omitempty"`

	// The value that is being set for the particular option.
	//
	// +optional
	Value string `json:"value,omitempty"`
}

DnsmasqOption contains the name and value of the option to configure in the libvirt network.

type MachinePool

type MachinePool struct {
}

MachinePool stores the configuration for a machine pool installed on libvirt.

func (*MachinePool) Set

func (l *MachinePool) Set(required *MachinePool)

Set sets the values from `required` to `a`.

type Metadata

type Metadata struct {
	URI string `json:"uri"`
}

Metadata contains libvirt metadata (e.g. for uninstalling the cluster).

type Network

type Network struct {
	// The interface make used for the network.
	// Default is tt0.
	//
	// +kubebuilder:default="tt0"
	// +optional
	IfName string `json:"if,omitempty"`

	// DnsmasqOptions is the dnsmasq options to be used when installing on
	// libvirt.
	//
	// +optional
	DnsmasqOptions []DnsmasqOption `json:"dnsmasqOptions,omitempty"`
}

Network is the configuration of the libvirt network.

type Platform

type Platform struct {
	// URI is the identifier for the libvirtd connection.  It must be
	// reachable from both the host (where the installer is run) and the
	// cluster (where the cluster-API controller pod will be running).
	// Default is qemu+tcp://192.168.122.1/system
	//
	// +kubebuilder:default="qemu+tcp://192.168.122.1/system"
	// +optional
	URI string `json:"URI,omitempty"`

	// DefaultMachinePlatform is the default configuration used when
	// installing on libvirt for machine pools which do not define their
	// own platform configuration.
	// Default will set the image field to the latest RHCOS image.
	//
	// +optional
	DefaultMachinePlatform *MachinePool `json:"defaultMachinePlatform,omitempty"`

	// Network
	// +optional
	Network *Network `json:"network,omitempty"`
}

Platform stores all the global configuration that all machinesets use.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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