Documentation ¶
Index ¶
- func AddFinalizer(ctx context.Context, rclient client.Client, instance client.Object) error
- func FreeIfNeeded(ctx context.Context, rclient client.Client, object client.Object) error
- func OnVLogsDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VLogs) error
- func OnVMAgentDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VMAgent) error
- func OnVMAlertDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VMAlert) error
- func OnVMAlertManagerDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VMAlertmanager) error
- func OnVMAuthDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VMAuth) error
- func OnVMClusterDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VMCluster) error
- func OnVMClusterLoadBalancerDelete(ctx context.Context, rclient client.Client, cr *vmv1beta1.VMCluster) error
- func OnVMInsertDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VMCluster, ...) error
- func OnVMSelectDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VMCluster, ...) error
- func OnVMSingleDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VMSingle) error
- func OnVMStorageDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VMCluster, ...) error
- func OnVMUserDelete(ctx context.Context, rclient client.Client, crd *v1beta1.VMUser) error
- func RemoveFinalizer(ctx context.Context, rclient client.Client, instance client.Object) error
- func RemoveOrphanedDeployments(ctx context.Context, rclient client.Client, cr orphanedCRD, ...) error
- func RemoveOrphanedSTSs(ctx context.Context, rclient client.Client, cr orphanedCRD, ...) error
- func SafeDelete(ctx context.Context, rclient client.Client, r client.Object) error
- func SafeDeleteWithFinalizer(ctx context.Context, rclient client.Client, r client.Object) error
- type RemoveSvcArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFinalizer ¶
AddFinalizer adds finalizer to instance if needed.
func FreeIfNeeded ¶
FreeIfNeeded checks if resource must be freed from finalizer and garbage collected by kubernetes
func OnVLogsDelete ¶ added in v0.47.0
OnVLogsDelete deletes all vlogs related resources
func OnVMAgentDelete ¶
OnVMAgentDelete deletes all vmagent related resources
func OnVMAlertDelete ¶
OnVMAlertDelete deletes all vmalert related resources
func OnVMAlertManagerDelete ¶
func OnVMAlertManagerDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VMAlertmanager) error
OnVMAlertManagerDelete deletes all alertmanager related resources
func OnVMAuthDelete ¶
OnVMAuthDelete deletes all vmauth related resources
func OnVMClusterDelete ¶
OnVMClusterDelete deletes all vmcluster related resources
func OnVMClusterLoadBalancerDelete ¶ added in v0.49.0
func OnVMClusterLoadBalancerDelete(ctx context.Context, rclient client.Client, cr *vmv1beta1.VMCluster) error
OnVMClusterLoadBalancerDelete removes vmauth loadbalancer components for vmcluster
func OnVMInsertDelete ¶ added in v0.48.0
func OnVMInsertDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VMCluster, obj *vmv1beta1.VMInsert) error
OnVMInsertDelete removes all objects related to vminsert component
func OnVMSelectDelete ¶ added in v0.48.0
func OnVMSelectDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VMCluster, obj *vmv1beta1.VMSelect) error
OnVMInsertDelete removes all objects related to vminsert component
func OnVMSingleDelete ¶
OnVMSingleDelete deletes all vmsingle related resources
func OnVMStorageDelete ¶ added in v0.48.0
func OnVMStorageDelete(ctx context.Context, rclient client.Client, crd *vmv1beta1.VMCluster, obj *vmv1beta1.VMStorage) error
OnVMInsertDelete removes all objects related to vminsert component
func OnVMUserDelete ¶
OnVMUserDelete deletes all vmuser related resources
func RemoveFinalizer ¶
RemoveFinalizer removes finalizer from instance if needed.
func RemoveOrphanedDeployments ¶
func RemoveOrphanedDeployments(ctx context.Context, rclient client.Client, cr orphanedCRD, keepDeployments map[string]struct{}) error
RemoveOrphanedDeployments removes deployments detached from given object
func RemoveOrphanedSTSs ¶
func RemoveOrphanedSTSs(ctx context.Context, rclient client.Client, cr orphanedCRD, keepSTSNames map[string]struct{}) error
RemoveOrphanedSTSs removes deployments detached from given object
func SafeDelete ¶
SafeDelete removes object, ignores notfound error.