...

Package stresschaos

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

Overview ▾

type Reconciler

Reconciler is stresschaos 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 stress-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.StressChaos) (ctrl.Result, error)

Reconcile reconciles a StressChaos 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