...

Package kernelchaos

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

Overview ▾

type Reconciler

Reconciler is KernelChaos reconciler

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

func (*Reconciler) Apply

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

Apply applies KernelChaos

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) (ctrl.Result, error)

Reconcile reconciles a request from controller

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