...

Package records

import "github.com/chaos-mesh/chaos-mesh/controllers/common/records"
Overview
Index

Overview ▾

func Step

func Step(ctx *pipeline.PipelineContext) reconcile.Reconciler

type Operation

type Operation string
const (
    Apply   Operation = "apply"
    Recover Operation = "recover"
    Nothing Operation = ""
)

type Reconciler

Reconciler for chaos records

type Reconciler struct {
    Impl types.ChaosImpl

    // 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
    client.Reader

    Recorder recorder.ChaosRecorder

    Selector *selector.Selector

    Log logr.Logger
}

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile the chaos records