Documentation ¶
Index ¶
- Constants
- func NewCDI(hc *hcov1beta1.HyperConverged, opts ...string) (*cdiv1beta1.CDI, error)
- func NewCDIWithNameOnly(hc *hcov1beta1.HyperConverged, opts ...string) *cdiv1beta1.CDI
- func NewConsoleCLIDownload(hc *hcov1beta1.HyperConverged) *consolev1.ConsoleCLIDownload
- func NewIMSConfigForCR(cr *hcov1beta1.HyperConverged, namespace string) *corev1.ConfigMap
- func NewKubeVirt(hc *hcov1beta1.HyperConverged, opts ...string) (*kubevirtv1.KubeVirt, error)
- func NewKubeVirtConfigForCR(cr *hcov1beta1.HyperConverged, namespace string) *corev1.ConfigMap
- func NewKubeVirtPriorityClass(hc *hcov1beta1.HyperConverged) *schedulingv1.PriorityClass
- func NewKubeVirtStorageConfigForCR(cr *hcov1beta1.HyperConverged, namespace string) *corev1.ConfigMap
- func NewKubeVirtStorageRoleBindingForCR(cr *hcov1beta1.HyperConverged, namespace string, scheme *runtime.Scheme) *rbacv1.RoleBinding
- func NewKubeVirtStorageRoleForCR(cr *hcov1beta1.HyperConverged, namespace string, scheme *runtime.Scheme) *rbacv1.Role
- func NewKubeVirtWithNameOnly(hc *hcov1beta1.HyperConverged, opts ...string) *kubevirtv1.KubeVirt
- func NewMetricsService(hc *hcov1beta1.HyperConverged, namespace string) *corev1.Service
- func NewNetworkAddons(hc *hcov1beta1.HyperConverged, opts ...string) (*networkaddonsv1.NetworkAddonsConfig, error)
- func NewNetworkAddonsWithNameOnly(hc *hcov1beta1.HyperConverged, opts ...string) *networkaddonsv1.NetworkAddonsConfig
- func NewPrometheusRule(hc *hcov1beta1.HyperConverged, namespace string) *monitoringv1.PrometheusRule
- func NewSSP(hc *hcov1beta1.HyperConverged, opts ...string) *sspv1beta1.SSP
- func NewServiceMonitor(hc *hcov1beta1.HyperConverged, namespace string) *monitoringv1.ServiceMonitor
- func NewVMImportForCR(cr *hcov1beta1.HyperConverged) *vmimportv1beta1.VMImportConfig
- type CLIDownloadHandler
- type EnsureResult
- func (r *EnsureResult) Error(err error) *EnsureResult
- func (r *EnsureResult) SetCreated() *EnsureResult
- func (r *EnsureResult) SetName(name string) *EnsureResult
- func (r *EnsureResult) SetOverwritten(overwritten bool) *EnsureResult
- func (r *EnsureResult) SetUpdated() *EnsureResult
- func (r *EnsureResult) SetUpgradeDone(upgradeDone bool) *EnsureResult
- type Operand
- type OperandHandler
Constants ¶
View Source
const ( // We can import the constants below from Kubevirt virt-config package // after Kubevirt will consume k8s.io v0.19.2 or higher FeatureGatesKey = "feature-gates" MachineTypeKey = "machine-type" UseEmulationKey = "debug.useEmulation" MigrationsConfigKey = "migrations" NetworkInterfaceKey = "default-network-interface" SmbiosConfigKey = "smbios" SELinuxLauncherTypeKey = "selinuxLauncherType" DefaultNetworkInterface = "bridge" HotplugVolumesGate = "HotplugVolumes" SRIOVLiveMigrationGate = "SRIOVLiveMigration" GPUGate = "GPU" HostDevicesGate = "HostDevices" )
View Source
const ( ErrCDIUninstall = "ErrCDIUninstall" ErrVirtUninstall = "ErrVirtUninstall" ErrHCOUninstall = "ErrHCOUninstall" )
View Source
const (
HonorWaitForFirstConsumerGate = "HonorWaitForFirstConsumer"
)
Variables ¶
This section is empty.
Functions ¶
func NewCDI ¶
func NewCDI(hc *hcov1beta1.HyperConverged, opts ...string) (*cdiv1beta1.CDI, error)
func NewCDIWithNameOnly ¶ added in v1.4.0
func NewCDIWithNameOnly(hc *hcov1beta1.HyperConverged, opts ...string) *cdiv1beta1.CDI
func NewConsoleCLIDownload ¶
func NewConsoleCLIDownload(hc *hcov1beta1.HyperConverged) *consolev1.ConsoleCLIDownload
func NewIMSConfigForCR ¶
func NewIMSConfigForCR(cr *hcov1beta1.HyperConverged, namespace string) *corev1.ConfigMap
func NewKubeVirt ¶
func NewKubeVirt(hc *hcov1beta1.HyperConverged, opts ...string) (*kubevirtv1.KubeVirt, error)
func NewKubeVirtConfigForCR ¶
func NewKubeVirtConfigForCR(cr *hcov1beta1.HyperConverged, namespace string) *corev1.ConfigMap
func NewKubeVirtPriorityClass ¶
func NewKubeVirtPriorityClass(hc *hcov1beta1.HyperConverged) *schedulingv1.PriorityClass
func NewKubeVirtStorageConfigForCR ¶
func NewKubeVirtStorageConfigForCR(cr *hcov1beta1.HyperConverged, namespace string) *corev1.ConfigMap
func NewKubeVirtStorageRoleBindingForCR ¶
func NewKubeVirtStorageRoleBindingForCR(cr *hcov1beta1.HyperConverged, namespace string, scheme *runtime.Scheme) *rbacv1.RoleBinding
func NewKubeVirtStorageRoleForCR ¶
func NewKubeVirtStorageRoleForCR(cr *hcov1beta1.HyperConverged, namespace string, scheme *runtime.Scheme) *rbacv1.Role
func NewKubeVirtWithNameOnly ¶ added in v1.4.0
func NewKubeVirtWithNameOnly(hc *hcov1beta1.HyperConverged, opts ...string) *kubevirtv1.KubeVirt
func NewMetricsService ¶
func NewMetricsService(hc *hcov1beta1.HyperConverged, namespace string) *corev1.Service
NewMetricsService creates service for prometheus metrics
func NewNetworkAddons ¶
func NewNetworkAddons(hc *hcov1beta1.HyperConverged, opts ...string) (*networkaddonsv1.NetworkAddonsConfig, error)
func NewNetworkAddonsWithNameOnly ¶ added in v1.4.0
func NewNetworkAddonsWithNameOnly(hc *hcov1beta1.HyperConverged, opts ...string) *networkaddonsv1.NetworkAddonsConfig
func NewPrometheusRule ¶
func NewPrometheusRule(hc *hcov1beta1.HyperConverged, namespace string) *monitoringv1.PrometheusRule
NewPrometheusRule creates PrometheusRule resource to define alert rules
func NewSSP ¶
func NewSSP(hc *hcov1beta1.HyperConverged, opts ...string) *sspv1beta1.SSP
func NewServiceMonitor ¶
func NewServiceMonitor(hc *hcov1beta1.HyperConverged, namespace string) *monitoringv1.ServiceMonitor
NewServiceMonitor creates ServiceMonitor resource to expose metrics endpoint
func NewVMImportForCR ¶
func NewVMImportForCR(cr *hcov1beta1.HyperConverged) *vmimportv1beta1.VMImportConfig
NewVMImportForCR returns a VM import CR
Types ¶
type CLIDownloadHandler ¶
type CLIDownloadHandler genericOperand
func (CLIDownloadHandler) Ensure ¶
func (h CLIDownloadHandler) Ensure(req *common.HcoRequest) error
type EnsureResult ¶
type EnsureResult struct { Updated bool Overwritten bool Created bool UpgradeDone bool Err error Type string Name string }
func NewEnsureResult ¶
func NewEnsureResult(resource runtime.Object) *EnsureResult
func (*EnsureResult) Error ¶
func (r *EnsureResult) Error(err error) *EnsureResult
func (*EnsureResult) SetCreated ¶
func (r *EnsureResult) SetCreated() *EnsureResult
func (*EnsureResult) SetName ¶
func (r *EnsureResult) SetName(name string) *EnsureResult
func (*EnsureResult) SetOverwritten ¶
func (r *EnsureResult) SetOverwritten(overwritten bool) *EnsureResult
func (*EnsureResult) SetUpdated ¶
func (r *EnsureResult) SetUpdated() *EnsureResult
func (*EnsureResult) SetUpgradeDone ¶
func (r *EnsureResult) SetUpgradeDone(upgradeDone bool) *EnsureResult
type OperandHandler ¶
type OperandHandler struct {
// contains filtered or unexported fields
}
func NewOperandHandler ¶
func NewOperandHandler(client client.Client, scheme *runtime.Scheme, isOpenshiftCluster bool, eventEmitter hcoutil.EventEmitter) *OperandHandler
func (OperandHandler) Ensure ¶
func (h OperandHandler) Ensure(req *common.HcoRequest) error
func (OperandHandler) EnsureDeleted ¶
func (h OperandHandler) EnsureDeleted(req *common.HcoRequest) error
func (*OperandHandler) FirstUseInitiation ¶
func (h *OperandHandler) FirstUseInitiation(scheme *runtime.Scheme, isOpenshiftCluster bool, hc *hcov1beta1.HyperConverged)
The k8s client is not available when calling to NewOperandHandler. Initial operations that need to read/write from the cluster can only be done when the client is already working.
func (*OperandHandler) Reset ¶ added in v1.4.0
func (h *OperandHandler) Reset()
Click to show internal directories.
Click to hide internal directories.