const ( // AnnotationCleanFinalizer key AnnotationCleanFinalizer = `chaos-mesh.chaos-mesh.org/cleanFinalizer` // AnnotationCleanFinalizerForced value AnnotationCleanFinalizerForced = `forced` RecordFinalizer = "chaos-mesh/records" )
func CleanStep(ctx *pipeline.PipelineContext) reconcile.Reconciler
func ContainsFinalizer(o metav1.Object, finalizer string) bool
ContainsFinalizer checks an Object that the provided finalizer is present.
func InitStep(ctx *pipeline.PipelineContext) reconcile.Reconciler
CleanReconciler for common chaos to clean the finalizer
type CleanReconciler struct { ReconcilerMeta }
func (r *CleanReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile the common chaos to clean the finalizer
InitReconciler for common chaos to init the finalizer
type InitReconciler struct { ReconcilerMeta }
func (r *InitReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile the common chaos to init the finalizer
ReconcilerMeta defines the meta of InitReconciler and CleanReconciler struct.
type ReconcilerMeta struct { // Object is used to mark the target type of this Reconciler Object v1alpha1.InnerObject // Client is used to operate on the Kubernetes cluster client.Client Recorder recorder.ChaosRecorder Log logr.Logger }