Documentation ¶
Overview ¶
Package gateway contains controllers for Gateway API objects.
Index ¶
- Constants
- func NewControllers(ctx context.Context, mgr ctrl.Manager, pgr pomerium.GatewayReconciler, ...) error
- func NewGatewayClassController(mgr ctrl.Manager, controllerName string) error
- func NewGatewayController(ctx context.Context, mgr ctrl.Manager, pgr pomerium.GatewayReconciler, ...) error
- type ControllerConfig
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.