v1beta1

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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "gatewayapiv1beta1-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[*gatewayapisv1beta1.Gateway], gateway *gatewayapisv1beta1.Gateway) bool

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

func (*Actuator) NewSourceObject

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

NewSourceObject creates a new Gateway resource.

func (*Actuator) ReconcileSourceObject

ReconcileSourceObject reconciles the given Gateway resource.

func (*Actuator) ShouldActivate

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

ShouldActivate checks whether the required Gateway API v1beta1 CRDs are present in the cluster. If the v1 CRDs are present, the v1beta1 controller should be deactivated in favor of the v1 controller and it returns false.

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