Documentation
¶
Index ¶
- Constants
- Variables
- type Actuator
- func (a *Actuator) ControllerName() string
- func (a *Actuator) FinalizerLocalName() string
- func (a *Actuator) GetGVK() schema.GroupVersionKind
- func (a *Actuator) IsRelevantSourceObject(r *common.SourceReconciler[*gatewayapisv1.Gateway], ...) bool
- func (a *Actuator) NewSourceObject() *gatewayapisv1.Gateway
- func (a *Actuator) ReconcileSourceObject(ctx context.Context, r *common.SourceReconciler[*gatewayapisv1.Gateway], ...) (reconcile.Result, error)
- func (a *Actuator) ShouldActivate() (bool, error)
- func (a *Actuator) ShouldSetTargetEntryAnnotation() bool
- func (a *Actuator) WatchHTTPRoutes(b *builder.Builder) *builder.Builder
Constants ¶
const ControllerName = "gatewayapiv1-source"
ControllerName is the name of this controller.
Variables ¶
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 ¶
ControllerName returns the name of this controller.
func (*Actuator) FinalizerLocalName ¶
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 ¶
ShouldActivate checks whether the required Gateway API v1 CRDs are present in the cluster.
func (*Actuator) ShouldSetTargetEntryAnnotation ¶
ShouldSetTargetEntryAnnotation indicates whether the target DNSEntry annotation should be set on the source object.