reconcilers

package
v0.1.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 {
	// contains filtered or unexported fields
}

func NewIngressReconciler

func NewIngressReconciler(store IngressStore, recorder *record.EventRecorder) *IngressReconciler

func (*IngressReconciler) Reconcile

type IngressStore added in v0.1.7

type IngressStore interface {
	CreateIngress(ctx context.Context, ingress *networkingv1.Ingress, options metav1.CreateOptions) (*networkingv1.Ingress, error)
	GetIngress(name, namespace string) (*networkingv1.Ingress, error)
}

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 {
	// contains filtered or unexported fields
}

func NewServiceReconciler

func NewServiceReconciler(store ServiceStore, recorder *record.EventRecorder) *ServiceReconciler

func (*ServiceReconciler) Reconcile

type ServiceStore added in v0.1.7

type ServiceStore interface {
	CreateService(ctx context.Context, service *corev1.Service, options metav1.CreateOptions) (*corev1.Service, error)
	GetService(name, namespace string) (*corev1.Service, error)
}

Jump to

Keyboard shortcuts

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