controllers

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MPL-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Names given to RBAC resources. Only one of each is created in any given
	// namespace.
	ServiceAccountName = "etok"
	RoleName           = "etok"
	RoleBindingName    = "etok"
)
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

	BackupProvider backup.Provider
	// contains filtered or unexported fields
}

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 WithBackupProvider added in v0.0.9

func WithBackupProvider(bp backup.Provider) WorkspaceReconcilerOption

func WithEventRecorder added in v0.0.7

func WithEventRecorder(recorder record.EventRecorder) WorkspaceReconcilerOption

Jump to

Keyboard shortcuts

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