gateway

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClassForGateway added in v1.14.0

ClassForGateway returns the GatewayClass referenced by gw, if one exists and is managed by the operator.

func ContourForGateway

func ContourForGateway(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) (*operatorv1alpha1.Contour, error)

ContourForGateway returns the Contour associated to gw, if one exists and is managed by the operator.

func EnsureFinalizer

func EnsureFinalizer(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) error

EnsureFinalizer ensures the finalizer is added to the given gw.

func EnsureFinalizerRemoved

func EnsureFinalizerRemoved(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) error

EnsureFinalizerRemoved ensures the finalizer is removed for the given gw.

func IsFinalized

func IsFinalized(gw *gatewayv1alpha1.Gateway) bool

IsFinalized returns true if gw is finalized.

func OtherGatewaysExist

func OtherGatewaysExist(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) (*gatewayv1alpha1.GatewayList, error)

OtherGatewaysExist lists Gateway objects in all namespaces, returning the list if any exist other than gw.

func OtherGatewaysExistInNs

func OtherGatewaysExistInNs(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) (bool, error)

OtherGatewaysExistInNs lists Gateway objects in the same namespace as gw, returning true if any exist.

func OtherGatewaysRefGatewayClass

func OtherGatewaysRefGatewayClass(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) (bool, error)

OtherGatewaysRefGatewayClass returns true if other gateways have the same gatewayClassName as gw.

func OwnerLabels added in v1.14.0

func OwnerLabels(gw *gatewayv1alpha1.Gateway) map[string]string

OwnerLabels returns owner labels for the provided gw.

func OwningSelector

func OwningSelector(gw *gatewayv1alpha1.Gateway) *metav1.LabelSelector

OwningSelector returns a label selector using "contour.operator.projectcontour.io/owning-gateway-name" and "contour.operator.projectcontour.io/owning-gateway-namespace" labels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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