Documentation ¶
Index ¶
- Variables
- func GetKnownOwnReference(pod *v1.Pod) *metav1.OwnerReference
- func OwnByStatefulWorkload(obj client.Object) bool
- func OwnByVirtualMachine(ctx context.Context, obj client.Object, client client.Reader) (bool, string, *metav1.OwnerReference, error)
- func OwnByVirtualMachineInstance(obj client.Object) (bool, string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StatefulWorkloadKinds []string DefaultIPRetain bool )
Functions ¶
func GetKnownOwnReference ¶
func GetKnownOwnReference(pod *v1.Pod) *metav1.OwnerReference
func OwnByStatefulWorkload ¶
func OwnByVirtualMachine ¶ added in v0.6.0
func OwnByVirtualMachine(ctx context.Context, obj client.Object, client client.Reader) (bool, string, *metav1.OwnerReference, error)
OwnByVirtualMachine takes client.Object as input, and returns whether it is owned by VirtualMachine directly or indirectly (i.e., pod).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.