controllers

package
v0.0.0-...-c8fb9b0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEngineFinished

func IsEngineFinished(j *operatorV1.ChaosEngine) bool

IsEngineFinished returns whether or not a job has completed successfully or failed.

Types

type ChaosScheduleReconciler

type ChaosScheduleReconciler struct {
	// This client, initialized using mgr.Client() above, is a split client
	// that reads objects from the cache and writes to the apiserver
	client.Client
	Scheme *runtime.Scheme
	// recorder is an event recorder for recording Event resources to the
	// Kubernetes API.
	Recorder record.EventRecorder
}

ChaosScheduleReconciler reconciles a ChaosSchedule object

func (*ChaosScheduleReconciler) Reconcile

func (r *ChaosScheduleReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

Reconcile reads that state of the cluster for a ChaosScheduler object and makes changes based on the state read and what is in the ChaosScheduler.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

func (*ChaosScheduleReconciler) SetupWithManager

func (r *ChaosScheduleReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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