reconcilers

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTypeNormal         string = "Normal"
	EventTypeWarning               = "Warning"
	ReasonReconcileFailed          = "Failed"
	ReasonReconciled               = "Created"
	ReasonReconcileCreating        = "Creating"
)
View Source
const (
	IngressKind = "Ingress"
	ServiceKind = "Service"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventRecorder added in v0.1.2

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

func NewEventRecorder added in v0.1.2

func NewEventRecorder(recorder record.EventRecorder) *EventRecorder

func (*EventRecorder) RecordCreating added in v0.1.2

func (r *EventRecorder) RecordCreating(gs *agonesv1.GameServer, kind string)

func (*EventRecorder) RecordFailed added in v0.1.2

func (r *EventRecorder) RecordFailed(gs *agonesv1.GameServer, kind string, err error)

func (*EventRecorder) RecordSuccess added in v0.1.2

func (r *EventRecorder) RecordSuccess(gs *agonesv1.GameServer, kind string)

type IngressOption added in v0.1.2

type IngressOption func(gs *agonesv1.GameServer, ingress *networkingv1.Ingress) error

func WithCustomAnnotations added in v0.1.3

func WithCustomAnnotations() IngressOption

func WithIngressRule added in v0.1.2

func WithIngressRule(mode gameserver.IngressRoutingMode) IngressOption

func WithTLS added in v0.1.2

func WithTLSCertIssuer added in v0.1.2

func WithTLSCertIssuer(issuerName string) IngressOption

type IngressReconciler

type IngressReconciler struct {
	Client *kubernetes.Clientset
	// contains filtered or unexported fields
}

func NewIngressReconciler

func NewIngressReconciler(client *kubernetes.Clientset, recorder record.EventRecorder) *IngressReconciler

func (*IngressReconciler) Reconcile

type Reconciler

type Reconciler struct {
	Obj runtime.Object
	client.Client
	Scheme *runtime.Scheme
	// 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.

type ServiceReconciler

type ServiceReconciler struct {
	Client *kubernetes.Clientset
	// contains filtered or unexported fields
}

func NewServiceReconciler

func NewServiceReconciler(client *kubernetes.Clientset, recorder record.EventRecorder) *ServiceReconciler

func (*ServiceReconciler) Reconcile

Jump to

Keyboard shortcuts

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