controllers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package controllers contains controller-loop logic.

Index

Constants

View Source
const RunnerController = "runner.octorun.github.io/controller"
View Source
const RunnerSetController = "runnerset.octorun.github.io/controller"

Variables

This section is empty.

Functions

This section is empty.

Types

type RunnerReconciler

type RunnerReconciler struct {
	client.Client
	Github   github.Client
	Scheme   *runtime.Scheme
	Executor remoteexec.RemoteExecutor
	Recorder record.EventRecorder
}

RunnerReconciler reconciles a Runner object

func (*RunnerReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*RunnerReconciler) SetupWithManager

func (r *RunnerReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type RunnerSetReconciler

type RunnerSetReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

RunnerSetReconciler reconciles a RunnerSet object

func (*RunnerSetReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*RunnerSetReconciler) SetupWithManager

func (r *RunnerSetReconciler) SetupWithManager(ctx context.Context, 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