Documentation ¶
Index ¶
- func ClassForGateway(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) (*gatewayv1alpha1.GatewayClass, error)
- 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 OwnerLabels(gw *gatewayv1alpha1.Gateway) map[string]string
- func OwningSelector(gw *gatewayv1alpha1.Gateway) *metav1.LabelSelector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClassForGateway ¶ added in v1.14.0
func ClassForGateway(ctx context.Context, cli client.Client, gw *gatewayv1alpha1.Gateway) (*gatewayv1alpha1.GatewayClass, error)
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 ¶
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.