gateway

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataPlaneForControlPlane

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

GetDataPlaneForControlPlane retrieves the DataPlane object referenced by a ControlPlane

func GetDataplaneServiceName

func GetDataplaneServiceName(
	ctx context.Context,
	c client.Client,
	dataplane *apisixoperatorv1alpha1.DataPlane,
) (string, error)

GetDataplaneServiceName is a helper functions that retrieves the name of the service owned by dataplane

func IsReady

func IsReady(gateway *gatewayv1alpha2.Gateway) bool

IsReady indicates whether or not the provided Gateway object was marked as ready by the controller.

func IsScheduled

func IsScheduled(gateway *gatewayv1alpha2.Gateway) bool

IsScheduled indicates whether or not the provided Gateway object was marked as scheduled 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 *gatewayv1alpha2.Gateway,
) ([]apisixoperatorv1alpha1.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 *gatewayv1alpha2.Gateway,
) ([]apisixoperatorv1alpha1.DataPlane, error)

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

func ListNetworkPoliciesForGateway

func ListNetworkPoliciesForGateway(
	ctx context.Context,
	c client.Client,
	gateway *gatewayv1alpha2.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