...

Package common

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

Overview ▾

Constants

const (
    // AnnotationCleanFinalizer key
    AnnotationCleanFinalizer = `chaos-mesh.chaos-mesh.org/cleanFinalizer`
    // AnnotationCleanFinalizerForced value
    AnnotationCleanFinalizerForced = `forced`
)

Variables

ControllerCfg is a global variable to keep the configuration for Chaos Controller

var ControllerCfg *config.ChaosControllerConfig

type Reconciler

Reconciler for common chaos

type Reconciler struct {
    reconciler.InnerReconciler
    client.Client
    client.Reader
    Log logr.Logger
}

func NewReconciler

func NewReconciler(reconcile reconciler.InnerReconciler, c client.Client, r client.Reader, log logr.Logger) *Reconciler

NewReconciler would create Reconciler for common chaos

func (*Reconciler) Reconcile

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

Reconcile the common chaos