provider

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

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

type InstanceByVMIName

type InstanceByVMIName string

InstanceByVMIName tries to fetch a vmi by its name

func (InstanceByVMIName) Get

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 InstancesV2Config struct {
	// Enabled activates the instances interface of the CCM
	Enabled bool `yaml:"enabled"`
	// ZoneAndRegionEnabled indicates if need to get Region and zone labels from the cloud provider
	ZoneAndRegionEnabled bool `yaml:"zoneAndRegionEnabled"`
}

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"`
}

Directories

Path Synopsis
mock
client
Package client is a generated GoMock package.
Package client is a generated GoMock package.

Jump to

Keyboard shortcuts

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