desiredphase

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

DesiredPhase Controller

This controller will control the .Status.Experiment.DesiredPhase field with the steps below:

  1. if the desiredPhase is empty, set it to "running" and go to step 4
  2. if duration exceeded, set desiredPhase to "stopped" and go the step 4
  3. if it has been paused, set desiredPhase to "stopped"; if not, set it to "running".
  4. if the desiredPhase has been updated, sync the difference to the kubernetes server.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Reconciler

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

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

	Recorder recorder.ChaosRecorder
	Log      logr.Logger
}

Reconciler for common chaos

func (*Reconciler) Reconcile

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

Reconcile the common chaos

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL