Documentation
¶
Overview ¶
predicates holds functions that work as predicates for controller-runtime calls, filtering requests send to the watchhandler so that only objects that have the predicate function return `true` will be sent to the watch handler.
Index ¶
- func GatewayClassOwnedByController(controllerName string) predicate.Predicate
- func GatewayOwnedByController(hasMatchingControllerFn func(object client.Object) bool) predicate.Predicate
- func IsManagedFrontendEndpointSlice(obj client.Object) bool
- func ManagedFrontendEndpointSlice() predicate.Predicate
- func NonManagedEndpointSlice() predicate.Predicate
- func SecretUsedInGatewayFn(c client.Client, controllerName string, logger *slog.Logger) func(obj client.Object) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsManagedFrontendEndpointSlice ¶
IsManagedFrontendEndpointSlice returns true when the EndpointSlice is a frontend slice managed by the cilium-operator (created by the Gateway translator for an L4 listener). The check is based on the standard EndpointSlice managed-by label.
func ManagedFrontendEndpointSlice ¶
ManagedFrontendEndpointSlice is a predicate that only admits managed frontend EndpointSlices.
func NonManagedEndpointSlice ¶
NonManagedEndpointSlice is a predicate that admits any EndpointSlice that is not a managed frontend slice (i.e. a backend slice produced by upstream kube-controller-manager or another controller).
Types ¶
This section is empty.