operands

package
v1.12.1-unstable Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 60 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAMD64OVMFPath         = "/usr/share/OVMF"
	DefaultARM64OVMFPath         = "/usr/share/AAVMF"
	DefaultAMD64EmulatedMachines = "q35*,pc-q35*"
	DefaultARM64EmulatedMachines = "virt*"
)
View Source
const (
	ErrCDIUninstall = "ErrCDIUninstall"

	ErrVirtUninstall = "ErrVirtUninstall"

	ErrHCOUninstall = "ErrHCOUninstall"
)
View Source
const (
	CDIImmediateBindAnnotation = "cdi.kubevirt.io/storage.bind.immediate.requested"
)

Variables

This section is empty.

Functions

func NewAAQ added in v1.11.0

func NewAAQWithNameOnly added in v1.11.0

func NewAAQWithNameOnly(hc *hcov1beta1.HyperConverged) *aaqv1alpha1.AAQ

func NewCDI

func NewCDI(hc *hcov1beta1.HyperConverged, opts ...string) (*cdiv1beta1.CDI, error)

func NewCDIWithNameOnly

func NewCDIWithNameOnly(hc *hcov1beta1.HyperConverged, opts ...string) *cdiv1beta1.CDI

func NewCliDownloadsRoute

func NewCliDownloadsRoute(hc *hcov1beta1.HyperConverged) *routev1.Route

func NewCliDownloadsService

func NewCliDownloadsService(hc *hcov1beta1.HyperConverged) *corev1.Service

NewCliDownloadsService creates a service object for the CLI downloads

func NewKVConsolePlugin added in v1.10.0

func NewKVConsolePlugin(hc *hcov1beta1.HyperConverged) *consolev1.ConsolePlugin

func NewKVUINginxCM added in v1.10.0

func NewKVUINginxCM(hc *hcov1beta1.HyperConverged) *corev1.ConfigMap

func NewKubeVirt

func NewKubeVirt(hc *hcov1beta1.HyperConverged, opts ...string) (*kubevirtcorev1.KubeVirt, error)

func NewKubeVirtWithNameOnly

func NewKubeVirtWithNameOnly(hc *hcov1beta1.HyperConverged, opts ...string) *kubevirtcorev1.KubeVirt

func NewKvUIPluginDeployment added in v1.10.0

func NewKvUIPluginDeployment(hc *hcov1beta1.HyperConverged) *appsv1.Deployment

func NewKvUIPluginSvc added in v1.10.0

func NewKvUIPluginSvc(hc *hcov1beta1.HyperConverged) *corev1.Service

func NewKvUIProxyDeployment added in v1.10.0

func NewKvUIProxyDeployment(hc *hcov1beta1.HyperConverged) *appsv1.Deployment

func NewKvUIProxySvc added in v1.10.0

func NewKvUIProxySvc(hc *hcov1beta1.HyperConverged) *corev1.Service

func NewMTQWithNameOnly added in v1.10.0

func NewMTQWithNameOnly(hc *hcov1beta1.HyperConverged) *mtqv1alpha1.MTQ

func NewSSPWithNameOnly

func NewSSPWithNameOnly(hc *hcov1beta1.HyperConverged, opts ...string) *sspv1beta2.SSP

func NewVirtioWinCm

func NewVirtioWinCm(hc *hcov1beta1.HyperConverged) (*corev1.ConfigMap, error)

func NewVirtioWinCmReaderRole

func NewVirtioWinCmReaderRole(hc *hcov1beta1.HyperConverged) *rbacv1.Role

func NewVirtioWinCmReaderRoleBinding

func NewVirtioWinCmReaderRoleBinding(hc *hcov1beta1.HyperConverged) *rbacv1.RoleBinding

Types

type EnsureResult

type EnsureResult struct {
	Updated     bool
	Overwritten bool
	Created     bool
	UpgradeDone bool
	Deleted     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) SetDeleted

func (r *EnsureResult) SetDeleted() *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 GetHandler

type GetHandler func(logger log.Logger, Client client.Client, Scheme *runtime.Scheme, hc *hcov1beta1.HyperConverged) ([]Operand, error)

type Operand

type Operand interface {
	// contains filtered or unexported methods
}

type OperandHandler

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

func NewOperandHandler

func NewOperandHandler(client client.Client, scheme *runtime.Scheme, ci hcoutil.ClusterInfo, 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, ci hcoutil.ClusterInfo, hc *hcov1beta1.HyperConverged)

FirstUseInitiation is a lazy init function 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) GetQuickStartNames

func (h *OperandHandler) GetQuickStartNames() []string

func (*OperandHandler) Reset

func (h *OperandHandler) Reset()

Jump to

Keyboard shortcuts

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