Documentation ¶
Index ¶
- func AddInstancetypeNameAnnotations(vm *virtv1.VirtualMachine, target metav1.Object)
- func AddPreferenceNameAnnotations(vm *virtv1.VirtualMachine, target metav1.Object)
- func ApplyDevicePreferences(preferenceSpec *instancetypev1alpha2.VirtualMachinePreferenceSpec, ...)
- func CreateControllerRevision(vm *virtv1.VirtualMachine, object runtime.Object) (*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 *instancetypev1alpha2.VirtualMachinePreferenceSpec, vmiSpec *virtv1.VirtualMachineInstanceSpec)
func CreateControllerRevision ¶ added in v0.58.0
func CreateControllerRevision(vm *virtv1.VirtualMachine, object runtime.Object) (*appsv1.ControllerRevision, error)
func GenerateRevisionNamePatch ¶
func GenerateRevisionNamePatch(instancetypeRevision, preferenceRevision *appsv1.ControllerRevision) ([]byte, error)
Types ¶
type Methods ¶
type Methods interface { FindInstancetypeSpec(vm *virtv1.VirtualMachine) (*instancetypev1alpha2.VirtualMachineInstancetypeSpec, error) ApplyToVmi(field *k8sfield.Path, instancetypespec *instancetypev1alpha2.VirtualMachineInstancetypeSpec, prefernceSpec *instancetypev1alpha2.VirtualMachinePreferenceSpec, vmiSpec *virtv1.VirtualMachineInstanceSpec) Conflicts FindPreferenceSpec(vm *virtv1.VirtualMachine) (*instancetypev1alpha2.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.