v1

package
v0.35.2-draft Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "gatewayapiv1-source"

ControllerName is the name of this controller.

Variables

View Source
var (
	// Activated indicates whether this source controller is activated.
	Activated bool
)

Functions

This section is empty.

Types

type Actuator

type Actuator struct {
	Discovery discovery.DiscoveryInterface
}

Actuator is an actuator for provided Gateway resources.

func (*Actuator) ControllerName

func (a *Actuator) ControllerName() string

ControllerName returns the name of this controller.

func (*Actuator) FinalizerLocalName

func (a *Actuator) FinalizerLocalName() string

FinalizerLocalName returns the local name of the finalizer for Gateway resources.

func (*Actuator) GetGVK

func (a *Actuator) GetGVK() schema.GroupVersionKind

GetGVK returns the GVK of Gateway resources.

func (*Actuator) IsRelevantSourceObject

func (a *Actuator) IsRelevantSourceObject(r *common.SourceReconciler[*gatewayapisv1.Gateway], gateway *gatewayapisv1.Gateway) bool

IsRelevantSourceObject checks whether the given Gateway resource is relevant for processing.

func (*Actuator) NewSourceObject

func (a *Actuator) NewSourceObject() *gatewayapisv1.Gateway

NewSourceObject creates a new Gateway resource.

func (*Actuator) ReconcileSourceObject

func (a *Actuator) ReconcileSourceObject(
	ctx context.Context,
	r *common.SourceReconciler[*gatewayapisv1.Gateway],
	gateway *gatewayapisv1.Gateway,
) (
	reconcile.Result,
	error,
)

ReconcileSourceObject reconciles the given Gateway resource.

func (*Actuator) ShouldActivate

func (a *Actuator) ShouldActivate() (bool, error)

ShouldActivate checks whether the required Gateway API v1 CRDs are present in the cluster.

func (*Actuator) ShouldSetTargetEntryAnnotation

func (a *Actuator) ShouldSetTargetEntryAnnotation() bool

ShouldSetTargetEntryAnnotation indicates whether the target DNSEntry annotation should be set on the source object.

func (*Actuator) WatchHTTPRoutes

func (a *Actuator) WatchHTTPRoutes(b *builder.Builder) *builder.Builder

WatchHTTPRoutes adds a watch for HTTPRoute resources to the given builder that maps them to Gateway reconciliation requests.

Jump to

Keyboard shortcuts

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