Documentation ¶
Index ¶
- func AddInstancetypeNameAnnotations(vm *virtv1.VirtualMachine, target metav1.Object)
- func AddPreferenceNameAnnotations(vm *virtv1.VirtualMachine, target metav1.Object)
- func ApplyDevicePreferences(preferenceSpec *instancetypev1alpha1.VirtualMachinePreferenceSpec, ...)
- func CreateInstancetypeControllerRevision(vm *virtv1.VirtualMachine, revisionName string, instancetypeApiVersion string, ...) (*appsv1.ControllerRevision, error)
- func CreatePreferenceControllerRevision(vm *virtv1.VirtualMachine, revisionName string, preferenceApiVersion string, ...) (*appsv1.ControllerRevision, error)
- func GenerateRevisionNamePatch(instancetypeRevision, preferenceRevision *appsv1.ControllerRevision) ([]byte, error)
- func GetRevisionName(vmName, resourceName string, resourceUID types.UID, resourceGeneration int64) string
- type Conflicts
- type Methods
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddInstancetypeNameAnnotations ¶
func AddInstancetypeNameAnnotations(vm *virtv1.VirtualMachine, target metav1.Object)
func AddPreferenceNameAnnotations ¶
func AddPreferenceNameAnnotations(vm *virtv1.VirtualMachine, target metav1.Object)
func ApplyDevicePreferences ¶ added in v0.57.0
func ApplyDevicePreferences(preferenceSpec *instancetypev1alpha1.VirtualMachinePreferenceSpec, vmiSpec *virtv1.VirtualMachineInstanceSpec)
func CreateInstancetypeControllerRevision ¶
func CreateInstancetypeControllerRevision(vm *virtv1.VirtualMachine, revisionName string, instancetypeApiVersion string, instancetypeSpec *instancetypev1alpha1.VirtualMachineInstancetypeSpec) (*appsv1.ControllerRevision, error)
func CreatePreferenceControllerRevision ¶
func CreatePreferenceControllerRevision(vm *virtv1.VirtualMachine, revisionName string, preferenceApiVersion string, preferenceSpec *instancetypev1alpha1.VirtualMachinePreferenceSpec) (*appsv1.ControllerRevision, error)
func GenerateRevisionNamePatch ¶
func GenerateRevisionNamePatch(instancetypeRevision, preferenceRevision *appsv1.ControllerRevision) ([]byte, error)
Types ¶
type Methods ¶
type Methods interface { FindInstancetypeSpec(vm *virtv1.VirtualMachine) (*instancetypev1alpha1.VirtualMachineInstancetypeSpec, error) ApplyToVmi(field *k8sfield.Path, instancetypespec *instancetypev1alpha1.VirtualMachineInstancetypeSpec, prefernceSpec *instancetypev1alpha1.VirtualMachinePreferenceSpec, vmiSpec *virtv1.VirtualMachineInstanceSpec) Conflicts FindPreferenceSpec(vm *virtv1.VirtualMachine) (*instancetypev1alpha1.VirtualMachinePreferenceSpec, error) StoreControllerRevisions(vm *virtv1.VirtualMachine) error }
func NewMethods ¶
func NewMethods(clientset kubecli.KubevirtClient) Methods
Click to show internal directories.
Click to hide internal directories.