scheduler

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePredicate

func CreatePredicate(e event.CreateEvent) bool

CreatePredicate accepts KubernetesApplications that have not yet been scheduled to a KubernetesCluster.

func UpdatePredicate

func UpdatePredicate(e event.UpdateEvent) bool

UpdatePredicate accepts KubernetesApplications that have not yet been scheduled to a KubernetesCluster.

Types

type Controller

type Controller struct{}

Controller is responsible for adding the Scheduler controller and its corresponding reconciler to the manager with any runtime configuration.

func (*Controller) SetupWithManager

func (c *Controller) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager creates a new Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

type Reconciler

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

A Reconciler schedules KubernetesApplications to KubernetesClusters.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req reconcile.Request) (reconcile.Result, error)

Reconcile attempts to schedule a KubernetesApplication to a KubernetesCluster that matches its cluster selector.

Jump to

Keyboard shortcuts

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