controllers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ScriptSubDirectory is the directory under kubediag data root for storing scripts.
	ScriptSubDirectory = "scripts"
	// FunctionSubDirectory is the directory under kubediag data root for storing functions.
	FunctionSubDirectory = "functions"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DiagnosisReconciler

type DiagnosisReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

DiagnosisReconciler reconciles a Diagnosis object.

func NewDiagnosisReconciler

func NewDiagnosisReconciler(
	cli client.Client,
	log logr.Logger,
	scheme *runtime.Scheme,
	mode string,
	nodeName string,
	executorCh chan diagnosisv1.Diagnosis,
) *DiagnosisReconciler

NewDiagnosisReconciler creates a new DiagnosisReconciler.

func (*DiagnosisReconciler) Reconcile

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

Reconcile synchronizes a Diagnosis object according to the phase.

func (*DiagnosisReconciler) SetupWithManager

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

SetupWithManager setups DiagnosisReconciler with the provided manager.

type EventReconciler

type EventReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

EventReconciler reconciles an Event object.

func NewEventReconciler

func NewEventReconciler(
	cli client.Client,
	log logr.Logger,
	scheme *runtime.Scheme,
	eventChainCh chan corev1.Event,
) *EventReconciler

NewEventReconciler creates a new EventReconciler.

func (*EventReconciler) Reconcile

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

Reconcile synchronizes an Event object.

func (*EventReconciler) SetupWithManager

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

SetupWithManager setups EventReconciler with the provided manager.

type OperationReconciler

type OperationReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

OperationReconciler reconciles a Operation object.

func NewOperationReconciler

func NewOperationReconciler(
	cli client.Client,
	log logr.Logger,
	scheme *runtime.Scheme,
	mode string,
	dataRoot string,
	python3MainFilePath string,
) *OperationReconciler

NewOperationReconciler creates a new OperationReconciler.

func (*OperationReconciler) Reconcile

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

Reconcile synchronizes an Operation object.

func (*OperationReconciler) SetupWithManager

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

SetupWithManager setups OperationReconciler with the provided manager.

type OperationSetReconciler

type OperationSetReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

OperationSetReconciler reconciles a OperationSet object.

func NewOperationSetReconciler

func NewOperationSetReconciler(
	cli client.Client,
	log logr.Logger,
	scheme *runtime.Scheme,
	graphBuilderCh chan diagnosisv1.OperationSet,
) *OperationSetReconciler

NewOperationSetReconciler creates a new OperationSetReconciler.

func (*OperationSetReconciler) Reconcile

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

Reconcile synchronizes a OperationSet object.

func (*OperationSetReconciler) SetupWithManager

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

SetupWithManager setups OperationSetReconciler with the provided manager.

type TriggerReconciler

type TriggerReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

TriggerReconciler reconciles a Trigger object.

func NewTriggerReconciler

func NewTriggerReconciler(
	cli client.Client,
	log logr.Logger,
	scheme *runtime.Scheme,
) *TriggerReconciler

NewTriggerReconciler creates a new TriggerReconciler.

func (*TriggerReconciler) Reconcile

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

Reconcile synchronizes a Trigger object.

func (*TriggerReconciler) SetupWithManager

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

SetupWithManager setups TriggerReconciler with the provided manager.

Jump to

Keyboard shortcuts

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