config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeVirtClusterConfigProvider

type KubeVirtClusterConfigProvider struct {
	// contains filtered or unexported fields
}

KubeVirtClusterConfigProvider is responsible for providing the current KubeVirt cluster config

func NewKubeVirtConfigProvider

func NewKubeVirtConfigProvider(stopCh chan struct{}, clientset kubernetes.Interface, kubevirtNamespace string) KubeVirtClusterConfigProvider

NewKubeVirtConfigProvider creates new KubeVirt config provider that will ensure that the provided config is up to date

func (*KubeVirtClusterConfigProvider) GetConfig

GetConfig provides the most current KubeVirt config

type KubeVirtConfig

type KubeVirtConfig struct {
	FeatureGates string
	// contains filtered or unexported fields
}

KubeVirtConfig stores KubeVirt runtime configuration

func NewKubeVirtConfig

func NewKubeVirtConfig(configMap v1.ConfigMap) KubeVirtConfig

NewKubeVirtConfig creates new KubeVirt and initializes it with given configMap

func (*KubeVirtConfig) ConfigMap

func (c *KubeVirtConfig) ConfigMap() v1.ConfigMap

ConfigMap returns plain KubeVirt config map

func (*KubeVirtConfig) LiveMigrationEnabled

func (c *KubeVirtConfig) LiveMigrationEnabled() bool

LiveMigrationEnabled returns true if LiveMigration KubeVirt feature gate is enabled

func (*KubeVirtConfig) String

func (c *KubeVirtConfig) String() string

String returns string representation of the config

type KubeVirtConfigProvider

type KubeVirtConfigProvider interface {
	GetConfig() (KubeVirtConfig, error)
}

KubeVirtConfigProvider defines KubeVirt config access operations

Jump to

Keyboard shortcuts

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