serveroperator

package
v0.11.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package serveroperator contains the logic to manage the gateway servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerReconciler

type ServerReconciler struct {
	client.Client
	Scheme          *runtime.Scheme
	DynClient       dynamic.Interface
	Factory         *dynamicutils.RunnableFactory
	ServerResources []string
}

ServerReconciler manage GatewayServer lifecycle.

func NewServerReconciler

func NewServerReconciler(cl client.Client, dynClient dynamic.Interface,
	factory *dynamicutils.RunnableFactory, s *runtime.Scheme,
	serverResources []string) *ServerReconciler

NewServerReconciler returns a new ServerReconciler.

func (*ServerReconciler) EnsureGatewayServer

func (r *ServerReconciler) EnsureGatewayServer(ctx context.Context, gwServer *networkingv1alpha1.GatewayServer) error

EnsureGatewayServer ensures the GatewayServer is correctly configured.

func (*ServerReconciler) Reconcile

func (r *ServerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile manage GatewayServer lifecycle.

func (*ServerReconciler) SetupWithManager

func (r *ServerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager register the ServerReconciler to the manager.

Jump to

Keyboard shortcuts

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