controller

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationPrefix             = "httproute.controller"
	AnnotationExpose             = AnnotationPrefix + "/expose"
	AnnotationHostname           = AnnotationPrefix + "/hostname"
	AnnotationGateway            = AnnotationPrefix + "/gateway"
	AnnotationGatewayNamespace   = AnnotationPrefix + "/gateway-namespace"
	AnnotationSectionName        = AnnotationPrefix + "/section-name"
	AnnotationPort               = AnnotationPrefix + "/port"
	AnnotationSkipReferenceGrant = AnnotationPrefix + "/skip-reference-grant"
	FinalizerHTTPRoute           = AnnotationPrefix + "/httproute-finalizer"
)

Fixed annotation prefix - not configurable

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.3.6

type Config struct {
	// DefaultGateway is the default gateway name (REQUIRED)
	DefaultGateway string
	// DefaultGatewayNamespace is the default gateway namespace (REQUIRED)
	DefaultGatewayNamespace string
	// DefaultSectionName is the default gateway listener section name
	DefaultSectionName string
}

Config holds the controller configuration (required values, no defaults)

type ServiceReconciler

type ServiceReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Config   Config
	Recorder record.EventRecorder
}

ServiceReconciler reconciles a Service object

func (*ServiceReconciler) Reconcile

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

func (*ServiceReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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