gateway

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreListenersProgrammed

func AreListenersProgrammed(gateway *gwtypes.Gateway) bool

AreListenersProgrammed indicates whether or not all the provided Gateway listeners were marked as Programmed by the controller.

func GetDataPlaneForControlPlane

func GetDataPlaneForControlPlane(
	ctx context.Context,
	c client.Client,
	controlplane *operatorv1beta1.ControlPlane,
) (*operatorv1beta1.DataPlane, error)

GetDataPlaneForControlPlane retrieves the DataPlane object referenced by a ControlPlane

func GetDataPlaneServiceName

func GetDataPlaneServiceName(
	ctx context.Context,
	c client.Client,
	dataplane *operatorv1beta1.DataPlane,
	serviceTypeLabelValue consts.ServiceType,
) (string, error)

GetDataPlaneServiceName is a helper function that retrieves the name of the service owned by provided dataplane. It accepts a string as the last argument to specify which service to retrieve (proxy/admin)

func IsAccepted added in v1.2.2

func IsAccepted(gateway *gwtypes.Gateway) bool

IsAccepted indicates whether or not the provided Gateway object was marked as scheduled by the controller.

func IsProgrammed

func IsProgrammed(gateway *gwtypes.Gateway) bool

IsProgrammed indicates whether or not the provided Gateway object was marked as Programmed by the controller.

func LabelObjectAsGatewayManaged

func LabelObjectAsGatewayManaged(obj client.Object)

LabelObjectAsGatewayManaged ensures that labels are set on the provided object to signal that it's owned by a Gateway resource and that it's lifecycle is managed by this operator.

func ListControlPlanesForGateway

func ListControlPlanesForGateway(
	ctx context.Context,
	c client.Client,
	gateway *gwtypes.Gateway,
) ([]operatorv1beta1.ControlPlane, error)

ListControlPlanesForGateway is a helper function to map a list of ControlPlanes that are owned and managed by a Gateway.

func ListDataPlanesForGateway

func ListDataPlanesForGateway(
	ctx context.Context,
	c client.Client,
	gateway *gwtypes.Gateway,
) ([]operatorv1beta1.DataPlane, error)

ListDataPlanesForGateway is a helper function to map a list of DataPlanes that are owned and managed by a Gateway.

func ListHTTPRoutesForGateway added in v1.3.0

func ListHTTPRoutesForGateway(
	ctx context.Context,
	c client.Client,
	gateway *gwtypes.Gateway,
	opts ...client.ListOption,
) ([]gwtypes.HTTPRoute, error)

ListHTTPRoutesForGateway is a helper function which returns a list of HTTPRoutes that have the provided Gateway set as parent in their status.

func ListNetworkPoliciesForGateway

func ListNetworkPoliciesForGateway(
	ctx context.Context,
	c client.Client,
	gateway *gwtypes.Gateway,
) ([]networkingv1.NetworkPolicy, error)

ListNetworkPoliciesForGateway is a helper function that returns a list of NetworkPolicies that are owned and managed by a Gateway.

Types

This section is empty.

Jump to

Keyboard shortcuts

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