controllers

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: MPL-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstallerContainerName = "installer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RunReconciler

type RunReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Image  string
}

func NewRunReconciler

func NewRunReconciler(c client.Client, image string) *RunReconciler

func (*RunReconciler) Reconcile

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

func (*RunReconciler) SetupWithManager

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

type WorkspaceReconciler

type WorkspaceReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	Image         string
	StorageClient *storage.Client
}

func NewWorkspaceReconciler

func NewWorkspaceReconciler(cl client.Client, image string, opts ...WorkspaceReconcilerOption) *WorkspaceReconciler

func (*WorkspaceReconciler) Reconcile

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

Reconcile reads that state of the cluster for a Workspace object and makes changes based on the state read and what is in the Workspace.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 (*WorkspaceReconciler) SetupWithManager

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

type WorkspaceReconcilerOption added in v0.0.5

type WorkspaceReconcilerOption func(r *WorkspaceReconciler)

func WithStorageClient added in v0.0.5

func WithStorageClient(sc *storage.Client) WorkspaceReconcilerOption

Jump to

Keyboard shortcuts

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