Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToManager ¶
func AddToManager(ctx *context.ControllerManagerContext, mgr ctrlmgr.Manager) error
AddToManager adds the webhook to the provided manager.
func NewMutator ¶
NewMutator returns the package's Mutator.
func SetNextRestartTime ¶
func SetNextRestartTime( ctx *context.WebhookRequestContext, newVM, oldVM *vmopv1.VirtualMachine) (bool, error)
SetNextRestartTime sets spec.nextRestartTime for a VM if the field's current value is equal to "now" (case-insensitive). Return true if set, otherwise false.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.