Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ProviderName is the name of the kubevirt provider
ProviderName = "kubevirt"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudConfig ¶
type CloudConfig struct { Kubeconfig string `yaml:"kubeconfig"` LoadBalancer LoadBalancerConfig `yaml:"loadBalancer"` InstancesV2 InstancesV2Config `yaml:"instancesV2"` Namespace string `yaml:"namespace"` InfraLabels map[string]string `yaml:"infraLabels"` }
func NewCloudConfigFromBytes ¶
func NewCloudConfigFromBytes(configBytes []byte) (CloudConfig, error)
type InstanceByVMIHostname ¶
type InstanceByVMIHostname string
InstanceByVMIHostname tries to fetch a vmi by its hostname
func (InstanceByVMIHostname) Get ¶
func (i InstanceByVMIHostname) Get(ctx context.Context, cli client.Client, namespace string) (*kubevirtv1.VirtualMachineInstance, error)
type InstanceByVMIName ¶
type InstanceByVMIName string
InstanceByVMIName tries to fetch a vmi by its name
func (InstanceByVMIName) Get ¶
func (i InstanceByVMIName) Get(ctx context.Context, cli client.Client, namespace string) (*kubevirtv1.VirtualMachineInstance, error)
type InstanceGetter ¶
type InstanceGetter interface { // Get gets a virtual machine instance Get(ctx context.Context, cli client.Client, namespace string) (*kubevirtv1.VirtualMachineInstance, error) }
InstanceGetter allows fetching virtual machine instances with multiple fetching strategies
type InstancesV2Config ¶
type LoadBalancerConfig ¶
type LoadBalancerConfig struct { // Enabled activates the load balancer interface of the CCM Enabled bool `yaml:"enabled"` // CreationPollInterval determines how many seconds to wait for the load balancer creation between retries CreationPollInterval *int `yaml:"creationPollInterval,omitempty"` // CreationPollTimeout determines how many seconds to wait for the load balancer creation CreationPollTimeout *int `yaml:"creationPollTimeout,omitempty"` }
Click to show internal directories.
Click to hide internal directories.