...

Package condition

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

Overview ▾

func Step

func Step(ctx *pipeline.PipelineContext) reconcile.Reconciler

type Reconciler

Reconciler for common chaos

type Reconciler struct {
    // Object is used to mark the target type of this Reconciler
    Object runtime.Object

    // Client is used to operate on the Kubernetes cluster
    client.Client

    Recorder record.EventRecorder

    Log logr.Logger
}

func (*Reconciler) Reconcile

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

type StatusAndReason

type StatusAndReason struct {
    Status corev1.ConditionStatus
    Reason string
}