controllers

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunnerManager

type RunnerManager interface {
	StartOrUpdate(*meowsv1alpha1.RunnerPool)
	Stop(context.Context, *meowsv1alpha1.RunnerPool) error
}

func NewRunnerManager

func NewRunnerManager(log logr.Logger, interval time.Duration, k8sClient client.Client, githubClient github.Client, runnerPodClient runner.Client) RunnerManager

type RunnerManagerImpl

type RunnerManagerImpl struct {
	// contains filtered or unexported fields
}

func (*RunnerManagerImpl) StartOrUpdate

func (m *RunnerManagerImpl) StartOrUpdate(rp *meowsv1alpha1.RunnerPool)

func (*RunnerManagerImpl) Stop

type RunnerPoolReconciler

type RunnerPoolReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

RunnerPoolReconciler reconciles a RunnerPool object

func NewRunnerPoolReconciler

func NewRunnerPoolReconciler(client client.Client, log logr.Logger, scheme *runtime.Scheme, repositoryNames []string, organizationName, runnerImage string, runnerManager RunnerManager, githubClient github.Client) *RunnerPoolReconciler

NewRunnerPoolReconciler creates RunnerPoolReconciler

func (*RunnerPoolReconciler) Reconcile

func (r *RunnerPoolReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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 (*RunnerPoolReconciler) SetupWithManager

func (r *RunnerPoolReconciler) 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