Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VMForControllerPredicate ¶
func VMForControllerPredicate( c client.Client, log logr.Logger, controllerName string, opts VMForControllerPredicateOptions) predicate.Predicate
VMForControllerPredicate returns a predicate.Predicate that filters VirtualMachine resources and returns only those that map to a VirtualMachineClass resource that uses the provided controller.
Please note this predicate is schema agnostic and should work with all VM Operator API schema versions.
Types ¶
type VMForControllerPredicateOptions ¶
type VMForControllerPredicateOptions struct { MatchIfVMClassNotFound bool MatchIfControllerNameFieldEmpty bool MatchIfControllerNameFieldMissing bool }
VMForControllerPredicateOptions is used to configure the behavior of the predicate created with VMForControllerPredicate.
Click to show internal directories.
Click to hide internal directories.