controller

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgonesController

type AgonesController struct {
	manager.Manager
	// contains filtered or unexported fields
}

AgonesController watches for events associated to a particular resource type like GameServers or Fleets. It uses the passed EventHandler argument to send back the current state of the world.

func NewAgonesController

func NewAgonesController(mgr manager.Manager, eventHandler handlers.EventHandler, options Options) (*AgonesController, error)

type Options

type Options struct {
	For  client.Object
	Owns client.Object
}

type Reconciler

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

Reconciler handles events when resources are reconciled. The interval is configured on the Manager's level.

func (*Reconciler) Reconcile

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

TODO: Evaluate is Reconcile should be made an argument for the Controller. Reconcile can be used for general uses cases where control over very specific events matter. Right now it is just a STDOUT output. Reconcile is called on every reconcile event. It does not differ between add, update, delete. Its function is purely informative and events are handled back to the broadcaster specific event handlers.

Jump to

Keyboard shortcuts

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