...

Package timechaos

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

Overview ▾

type Reconciler

Reconciler is time-chaos reconciler

type Reconciler struct {
    client.Client
    client.Reader
    record.EventRecorder
    Log logr.Logger
}

func (*Reconciler) Apply

func (r *Reconciler) Apply(ctx context.Context, req ctrl.Request, chaos v1alpha1.InnerObject) error

Apply applies time-chaos

func (*Reconciler) Object

func (r *Reconciler) Object() v1alpha1.InnerObject

Object would return the instance of chaos

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req ctrl.Request, chaos *v1alpha1.TimeChaos) (ctrl.Result, error)

Reconcile reconciles a TimeChaos resource

func (*Reconciler) Recover

func (r *Reconciler) Recover(ctx context.Context, req ctrl.Request, chaos v1alpha1.InnerObject) error

Recover means the reconciler recovers the chaos action