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 ¶
func (cp *KubeVirtClusterConfigProvider) GetConfig() (KubeVirtConfig, error)
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