Documentation ¶
Index ¶
- func AddFinalizer(ctx context.Context, rclient client.Client, instance client.Object) error
- func DeletePSPChain(ctx context.Context, rclient client.Client, crd CRDObject) error
- func HPADelete(ctx context.Context, rclient client.Client, objectName, objectNamespace string) error
- func OnVMAgentDelete(ctx context.Context, rclient client.Client, ...) error
- func OnVMAlertDelete(ctx context.Context, rclient client.Client, ...) error
- func OnVMAlertManagerDelete(ctx context.Context, rclient client.Client, ...) error
- func OnVMAuthDelete(ctx context.Context, rclient client.Client, crd *victoriametricsv1beta1.VMAuth) error
- func OnVMClusterDelete(ctx context.Context, rclient client.Client, ...) error
- func OnVMSingleDelete(ctx context.Context, rclient client.Client, ...) 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 RemoveOrphanedServices(ctx context.Context, rclient client.Client, args RemoveSvcArgs, ...) error
- func SafeDelete(ctx context.Context, rclient client.Client, r client.Object) error
- func VMAuthIngressDelete(ctx context.Context, rclient client.Client, crd *victoriametricsv1beta1.VMAuth) error
- type CRDObject
- type RemoveSvcArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFinalizer ¶
AddFinalizer adds finalizer to instance if needed.
func DeletePSPChain ¶
DeletePSPChain - removes psp, cluster role and cluster role binding, on finalize request for given CRD
func HPADelete ¶ added in v0.17.2
func HPADelete(ctx context.Context, rclient client.Client, objectName, objectNamespace string) error
HPADelete handles case, when user wants to remove HPA configuration from cluster config.
func OnVMAgentDelete ¶
func OnVMAlertDelete ¶
func OnVMAlertManagerDelete ¶
func OnVMAlertManagerDelete(ctx context.Context, rclient client.Client, crd *victoriametricsv1beta1.VMAlertmanager) error
func OnVMAuthDelete ¶ added in v0.15.0
func OnVMClusterDelete ¶
func OnVMSingleDelete ¶
func OnVMUserDelete ¶ added in v0.15.0
func RemoveFinalizer ¶ added in v0.11.0
RemoveFinalizer removes finalizer from instance if needed.
func RemoveOrphanedDeployments ¶ added in v0.12.0
func RemoveOrphanedDeployments(ctx context.Context, rclient client.Client, cr orphanedCRD, keepDeployments map[string]struct{}) error
RemoveOrphanedDeployments removes deployments detached from given object
func RemoveOrphanedSTSs ¶ added in v0.25.0
func RemoveOrphanedSTSs(ctx context.Context, rclient client.Client, cr orphanedCRD, keepSTSNames map[string]struct{}) error
RemoveOrphanedSTSs removes deployments detached from given object
func RemoveOrphanedServices ¶ added in v0.12.0
func RemoveOrphanedServices(ctx context.Context, rclient client.Client, args RemoveSvcArgs, spec *victoriametricsv1beta1.ServiceSpec) error
RemoveOrphanedServices removes services that no longer belongs to given crd by its args.
func SafeDelete ¶ added in v0.11.0
SafeDelete removes object, ignores notfound error.
func VMAuthIngressDelete ¶ added in v0.16.0
func VMAuthIngressDelete(ctx context.Context, rclient client.Client, crd *victoriametricsv1beta1.VMAuth) error
VMAuthIngressDelete handles case, when user wants to remove spec.Ingress from vmauth config.