...

Package podfailure

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

Overview ▾

func NewCommonReconciler

func NewCommonReconciler(c client.Client, reader client.Reader, log logr.Logger, recorder record.EventRecorder) *common.Reconciler

NewCommonReconciler would create Reconciler for common package

func NewTwoPhaseReconciler

func NewTwoPhaseReconciler(c client.Client, reader client.Reader, log logr.Logger, recorder record.EventRecorder) *twophase.Reconciler

NewTwoPhaseReconciler would create Reconciler for twophase package

type 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 implements the reconciler.InnerReconciler.Apply

func (*Reconciler) Object

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

Object implements the reconciler.InnerReconciler.Object

func (*Reconciler) Recover

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

Recover implements the reconciler.InnerReconciler.Recover