Documentation
¶
Index ¶
- func ApplyDevicePreferences(preferenceSpec *instancetypev1beta1.VirtualMachinePreferenceSpec, ...)
- func CompareRevisions(revisionA, revisionB *appsv1.ControllerRevision) (bool, error)
- func CreateControllerRevision(vm *virtv1.VirtualMachine, object runtime.Object) (*appsv1.ControllerRevision, error)
- func GetPreferredTopology(preferenceSpec *instancetypev1beta1.VirtualMachinePreferenceSpec) instancetypev1beta1.PreferredCPUTopology
- func GetRevisionName(vmName, resourceName, resourceVersion string, resourceUID types.UID, ...) string
- func GetSpreadOptions(preferenceSpec *instancetypev1beta1.VirtualMachinePreferenceSpec) (uint32, instancetypev1beta1.SpreadAcross)
- func IsObjectLatestVersion(cr *appsv1.ControllerRevision) bool
- func IsPreferredTopologySupported(topology instancetypev1beta1.PreferredCPUTopology) bool
- type InstancetypeMethods
- func (m *InstancetypeMethods) ApplyToVM(vm *virtv1.VirtualMachine) error
- func (m *InstancetypeMethods) ApplyToVmi(field *k8sfield.Path, ...) conflict.Conflicts
- func (m *InstancetypeMethods) FindInstancetypeSpec(vm *virtv1.VirtualMachine) (*instancetypev1beta1.VirtualMachineInstancetypeSpec, error)
- func (m *InstancetypeMethods) FindPreferenceSpec(vm *virtv1.VirtualMachine) (*instancetypev1beta1.VirtualMachinePreferenceSpec, error)
- func (m *InstancetypeMethods) InferDefaultInstancetype(vm *virtv1.VirtualMachine) error
- func (m *InstancetypeMethods) InferDefaultPreference(vm *virtv1.VirtualMachine) error
- func (m *InstancetypeMethods) Upgrade(vm *virtv1.VirtualMachine) error
- type Methods
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyDevicePreferences ¶ added in v0.57.0
func ApplyDevicePreferences(preferenceSpec *instancetypev1beta1.VirtualMachinePreferenceSpec, vmiSpec *virtv1.VirtualMachineInstanceSpec)
func CompareRevisions ¶ added in v0.59.0
func CompareRevisions(revisionA, revisionB *appsv1.ControllerRevision) (bool, error)
func CreateControllerRevision ¶ added in v0.58.0
func CreateControllerRevision(vm *virtv1.VirtualMachine, object runtime.Object) (*appsv1.ControllerRevision, error)
func GetPreferredTopology ¶ added in v1.1.0
func GetPreferredTopology(preferenceSpec *instancetypev1beta1.VirtualMachinePreferenceSpec) instancetypev1beta1.PreferredCPUTopology
func GetRevisionName ¶
func GetSpreadOptions ¶ added in v1.3.0
func GetSpreadOptions(preferenceSpec *instancetypev1beta1.VirtualMachinePreferenceSpec) (uint32, instancetypev1beta1.SpreadAcross)
func IsObjectLatestVersion ¶ added in v1.3.0
func IsObjectLatestVersion(cr *appsv1.ControllerRevision) bool
func IsPreferredTopologySupported ¶ added in v1.4.0
func IsPreferredTopologySupported(topology instancetypev1beta1.PreferredCPUTopology) bool
Types ¶
type InstancetypeMethods ¶ added in v1.0.0
type InstancetypeMethods struct { InstancetypeStore cache.Store ClusterInstancetypeStore cache.Store PreferenceStore cache.Store ClusterPreferenceStore cache.Store ControllerRevisionStore cache.Store Clientset kubecli.KubevirtClient }
func (*InstancetypeMethods) ApplyToVM ¶ added in v1.3.0
func (m *InstancetypeMethods) ApplyToVM(vm *virtv1.VirtualMachine) error
func (*InstancetypeMethods) ApplyToVmi ¶ added in v1.0.0
func (m *InstancetypeMethods) ApplyToVmi(field *k8sfield.Path, instancetypeSpec *instancetypev1beta1.VirtualMachineInstancetypeSpec, preferenceSpec *instancetypev1beta1.VirtualMachinePreferenceSpec, vmiSpec *virtv1.VirtualMachineInstanceSpec, vmiMetadata *metav1.ObjectMeta) conflict.Conflicts
func (*InstancetypeMethods) FindInstancetypeSpec ¶ added in v1.0.0
func (m *InstancetypeMethods) FindInstancetypeSpec(vm *virtv1.VirtualMachine) (*instancetypev1beta1.VirtualMachineInstancetypeSpec, error)
func (*InstancetypeMethods) FindPreferenceSpec ¶ added in v1.0.0
func (m *InstancetypeMethods) FindPreferenceSpec(vm *virtv1.VirtualMachine) (*instancetypev1beta1.VirtualMachinePreferenceSpec, error)
func (*InstancetypeMethods) InferDefaultInstancetype ¶ added in v1.0.0
func (m *InstancetypeMethods) InferDefaultInstancetype(vm *virtv1.VirtualMachine) error
func (*InstancetypeMethods) InferDefaultPreference ¶ added in v1.0.0
func (m *InstancetypeMethods) InferDefaultPreference(vm *virtv1.VirtualMachine) error
func (*InstancetypeMethods) Upgrade ¶ added in v1.3.0
func (m *InstancetypeMethods) Upgrade(vm *virtv1.VirtualMachine) error
type Methods ¶
type Methods interface { Upgrade(vm *virtv1.VirtualMachine) error FindInstancetypeSpec(vm *virtv1.VirtualMachine) (*instancetypev1beta1.VirtualMachineInstancetypeSpec, error) ApplyToVmi(field *k8sfield.Path, instancetypespec *instancetypev1beta1.VirtualMachineInstancetypeSpec, preferenceSpec *instancetypev1beta1.VirtualMachinePreferenceSpec, vmiSpec *virtv1.VirtualMachineInstanceSpec, vmiMetadata *metav1.ObjectMeta) conflict.Conflicts FindPreferenceSpec(vm *virtv1.VirtualMachine) (*instancetypev1beta1.VirtualMachinePreferenceSpec, error) InferDefaultInstancetype(vm *virtv1.VirtualMachine) error InferDefaultPreference(vm *virtv1.VirtualMachine) error ApplyToVM(vm *virtv1.VirtualMachine) error }
Directories
¶
Path | Synopsis |
---|---|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
controller
|
|
vm
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
preference
|
|
annotations
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
apply
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
find
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
requirements
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
validation
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
webhooks
|
|
vm
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
Click to show internal directories.
Click to hide internal directories.