Documentation ¶
Index ¶
- func AddFlavorNameAnnotations(vm *virtv1.VirtualMachine, target metav1.Object)
- func AddPreferenceNameAnnotations(vm *virtv1.VirtualMachine, target metav1.Object)
- func CreateFlavorControllerRevision(vm *virtv1.VirtualMachine, revisionName string, flavorApiVersion string, ...) (*appsv1.ControllerRevision, error)
- func CreatePreferenceControllerRevision(vm *virtv1.VirtualMachine, revisionName string, preferenceApiVersion string, ...) (*appsv1.ControllerRevision, error)
- func GenerateRevisionNamePatch(flavorRevision, 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 AddFlavorNameAnnotations ¶ added in v0.53.0
func AddFlavorNameAnnotations(vm *virtv1.VirtualMachine, target metav1.Object)
func AddPreferenceNameAnnotations ¶ added in v0.54.0
func AddPreferenceNameAnnotations(vm *virtv1.VirtualMachine, target metav1.Object)
func CreateFlavorControllerRevision ¶ added in v0.55.0
func CreateFlavorControllerRevision(vm *virtv1.VirtualMachine, revisionName string, flavorApiVersion string, flavorSpec *flavorv1alpha1.VirtualMachineFlavorSpec) (*appsv1.ControllerRevision, error)
func CreatePreferenceControllerRevision ¶ added in v0.55.0
func CreatePreferenceControllerRevision(vm *virtv1.VirtualMachine, revisionName string, preferenceApiVersion string, preferenceSpec *flavorv1alpha1.VirtualMachinePreferenceSpec) (*appsv1.ControllerRevision, error)
func GenerateRevisionNamePatch ¶ added in v0.55.0
func GenerateRevisionNamePatch(flavorRevision, preferenceRevision *appsv1.ControllerRevision) ([]byte, error)
Types ¶
type Methods ¶
type Methods interface { FindFlavorSpec(vm *virtv1.VirtualMachine) (*flavorv1alpha1.VirtualMachineFlavorSpec, error) ApplyToVmi(field *k8sfield.Path, flavorspec *flavorv1alpha1.VirtualMachineFlavorSpec, prefernceSpec *flavorv1alpha1.VirtualMachinePreferenceSpec, vmiSpec *virtv1.VirtualMachineInstanceSpec) Conflicts FindPreferenceSpec(vm *virtv1.VirtualMachine) (*flavorv1alpha1.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.