Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameServerReconciler ¶ added in v0.2.1
type GameServerReconciler struct {
// contains filtered or unexported fields
}
func NewGameServerReconciler ¶ added in v0.2.1
func NewGameServerReconciler(store GameServerStore, recorder *record.EventRecorder) *GameServerReconciler
func (*GameServerReconciler) MustReconcile ¶ added in v0.2.1
func (r *GameServerReconciler) MustReconcile(gs *agonesv1.GameServer) (bool, error)
func (*GameServerReconciler) Reconcile ¶ added in v0.2.1
func (r *GameServerReconciler) Reconcile(ctx context.Context, gs *agonesv1.GameServer) (*agonesv1.GameServer, error)
type GameServerStore ¶ added in v0.2.1
type GameServerStore interface { UpdateGameServer(ctx context.Context, gs *agonesv1.GameServer) (*agonesv1.GameServer, error) GetGameServer(ctx context.Context, name, namespace string) (*agonesv1.GameServer, error) }
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 WithCustomAnnotationsTemplate ¶ added in v0.2.1
func WithCustomAnnotationsTemplate() IngressOption
func WithIngressRule ¶ added in v0.1.2
func WithIngressRule(mode gameserver.IngressRoutingMode) IngressOption
func WithTLS ¶ added in v0.1.2
func WithTLS(mode gameserver.IngressRoutingMode) IngressOption
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 ¶
func (r *IngressReconciler) Reconcile(ctx context.Context, gs *agonesv1.GameServer) (*networkingv1.Ingress, error)
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 ServiceOption ¶ added in v0.2.2
type ServiceOption func(gs *agonesv1.GameServer, service *corev1.Service) error
func WithCustomServiceAnnotations ¶ added in v0.2.2
func WithCustomServiceAnnotations() ServiceOption
func WithCustomServiceAnnotationsTemplate ¶ added in v0.2.2
func WithCustomServiceAnnotationsTemplate() ServiceOption
type ServiceReconciler ¶
type ServiceReconciler struct {
// contains filtered or unexported fields
}
func NewServiceReconciler ¶
func NewServiceReconciler(store ServiceStore, recorder *record.EventRecorder) *ServiceReconciler
func (*ServiceReconciler) Reconcile ¶
func (r *ServiceReconciler) Reconcile(ctx context.Context, gs *agonesv1.GameServer) (*corev1.Service, error)
Click to show internal directories.
Click to hide internal directories.