finalize

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(ctx context.Context, rclient client.Client, instance client.Object) error

func DeletePSPChain

func DeletePSPChain(ctx context.Context, rclient client.Client, crd CRDObject) error

DeletePSPChain - removes psp, cluster role and cluster role binding, on finalize request for given CRD

func OnVMAgentDelete

func OnVMAgentDelete(ctx context.Context, rclient client.Client, crd *victoriametricsv1beta1.VMAgent) error

func OnVMAlertDelete

func OnVMAlertDelete(ctx context.Context, rclient client.Client, crd *victoriametricsv1beta1.VMAlert) error

func OnVMAlertManagerDelete

func OnVMAlertManagerDelete(ctx context.Context, rclient client.Client, crd *victoriametricsv1beta1.VMAlertmanager) error

func OnVMClusterDelete

func OnVMClusterDelete(ctx context.Context, rclient client.Client, crd *victoriametricsv1beta1.VMCluster) error

func OnVMSingleDelete

func OnVMSingleDelete(ctx context.Context, rclient client.Client, crd *victoriametricsv1beta1.VMSingle) error

Types

type CRDObject

type CRDObject interface {
	Annotations() map[string]string
	Labels() map[string]string
	PrefixedName() string
	GetServiceAccountName() string
	GetPSPName() string
	GetNSName() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL