gateway

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Mar 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 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.

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 OwnerLabelsExist

func OwnerLabelsExist(obj metav1.Object, gw *gatewayv1alpha1.Gateway) bool

OwnerLabelsExist returns true if obj contains Gateway owner labels.

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