Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeVirtClusterConfigProvider ¶
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 ¶
KubeVirtConfig stores KubeVirt runtime configuration
func NewKubeVirtConfig ¶
func NewKubeVirtConfig(configMap v1.ConfigMap) KubeVirtConfig
NewKubeVirtConfig creates new KubeVirt and initializes it with given configMap
func NewKubeVirtConfigFrom ¶
func NewKubeVirtConfigFrom(config config.Config) KubeVirtConfig
NewKubeVirtConfigFrom creates new KubeVirt and initializes it with given Config
func (*KubeVirtConfig) ImportWithoutTemplateEnabled ¶
func (c *KubeVirtConfig) ImportWithoutTemplateEnabled() bool
ImportWithoutTemplateEnabled returns true if ImportWithoutTemplate KubeVirt feature gate is enabled
type KubeVirtConfigProvider ¶
type KubeVirtConfigProvider interface {
GetConfig() (KubeVirtConfig, error)
}
KubeVirtConfigProvider defines KubeVirt config access operations