Documentation ¶
Index ¶
- func ContourForGateway(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) (*operatorv1alpha1.Contour, error)
- func EnsureFinalizer(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) error
- func EnsureFinalizerRemoved(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) error
- func IsFinalized(gw *gatewayv1alpha1.Gateway) bool
- func OtherGatewaysExist(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) (*gatewayv1alpha1.GatewayList, error)
- func OtherGatewaysExistInNs(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) (bool, error)
- func OtherGatewaysRefGatewayClass(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) (bool, error)
- func OwnerLabelsExist(obj metav1.Object, gw *gatewayv1alpha1.Gateway) bool
- func OwningSelector(gw *gatewayv1alpha1.Gateway) *metav1.LabelSelector
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 ¶
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.