gateway

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package gateway contains controllers for Gateway API objects.

Index

Constants

View Source
const DefaultClassControllerName = "pomerium.io/gateway-controller"

DefaultClassControllerName is the default GatewayClass ControllerName.

Variables

This section is empty.

Functions

func NewControllers

func NewControllers(
	ctx context.Context,
	mgr ctrl.Manager,
	pgr pomerium.GatewayReconciler,
	config ControllerConfig,
) error

NewControllers sets up GatewayClass and Gateway controllers.

func NewGatewayClassController

func NewGatewayClassController(
	mgr ctrl.Manager,
	controllerName string,
) error

NewGatewayClassController creates and registers a new controller for GatewayClass objects. This controller does just one thing: it sets the "Accepted" status condition.

func NewGatewayController

func NewGatewayController(
	ctx context.Context,
	mgr ctrl.Manager,
	pgr pomerium.GatewayReconciler,
	config ControllerConfig,
) error

NewGatewayController creates and registers a new controller for Gateway objects.

Types

type ControllerConfig

type ControllerConfig struct {
	// ControllerName associates this controller with a GatewayClass.
	ControllerName string
	// Gateway addresses are determined from this service.
	ServiceName types.NamespacedName
}

ControllerConfig contains configuration options for the Gateway controller.

Jump to

Keyboard shortcuts

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