predicates

package
v1.20.0-pre.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func GatewayClassOwnedByController

func GatewayClassOwnedByController(controllerName string) predicate.Predicate

func GatewayOwnedByController

func GatewayOwnedByController(hasMatchingControllerFn func(object client.Object) bool) predicate.Predicate

func IsManagedFrontendEndpointSlice

func IsManagedFrontendEndpointSlice(obj client.Object) bool

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

func ManagedFrontendEndpointSlice() predicate.Predicate

ManagedFrontendEndpointSlice is a predicate that only admits managed frontend EndpointSlices.

func NonManagedEndpointSlice

func NonManagedEndpointSlice() predicate.Predicate

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).

func SecretUsedInGatewayFn

func SecretUsedInGatewayFn(c client.Client, controllerName string, logger *slog.Logger) func(obj client.Object) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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