hybridgateway

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ControllerName is the name used for logging and event recording in the hybrid gateway controller.
	ControllerName = "hybridgateway"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HybridGatewayReconciler

type HybridGatewayReconciler[t converter.RootObject, tPtr converter.RootObjectPtr[t]] struct {
	client.Client
	// contains filtered or unexported fields
}

HybridGatewayReconciler is a generic reconciler for handling Gateway API resources in a hybrid environment. It operates on objects implementing the RootObject and RootObjectPtr interfaces, allowing flexible reconciliation logic for different resource types.

func NewHybridGatewayReconciler

func NewHybridGatewayReconciler[t converter.RootObject, tPtr converter.RootObjectPtr[t]](mgr ctrl.Manager, fqdnMode bool, clusterDomain string) *HybridGatewayReconciler[t, tPtr]

NewHybridGatewayReconciler creates a new instance of GatewayAPIHybridReconciler for the specified generic types t and tPtr. It initializes the reconciler with the client from the provided manager.

func (*HybridGatewayReconciler[t, tPtr]) Reconcile

func (r *HybridGatewayReconciler[t, tPtr]) Reconcile(ctx context.Context, obj tPtr) (ctrl.Result, error)

Reconcile reconciles the state of a custom resource by fetching the object, converting it to the expected type, translating it, and enforcing its desired state.

func (*HybridGatewayReconciler[t, tPtr]) SetupWithManager

func (r *HybridGatewayReconciler[t, tPtr]) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the provided manager. It registers the reconciler to watch and manage resources of type 'u'.

Jump to

Keyboard shortcuts

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