predicate

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationPredicate added in v1.1.0

type AnnotationPredicate struct {
	predicate.Funcs
	Annotation string
}

AnnotationPredicate implements a predicate function based on the Annotation.

This predicate will skip the following events: 1. Create events that do not contain the Annotation. 2. Update events where the Annotation value has not changed.

func (AnnotationPredicate) Create added in v1.1.0

Create filters CreateEvents based on the Annotation.

func (AnnotationPredicate) Update added in v1.1.0

Update filters UpdateEvents based on the Annotation.

type GatewayClassPredicate

type GatewayClassPredicate struct {
	predicate.Funcs
	ControllerName string
}

GatewayClassPredicate implements a predicate function based on the controllerName of a GatewayClass. This predicate will skip events for GatewayClasses that don't reference this controller.

func (GatewayClassPredicate) Create

Create implements default CreateEvent filter for validating a GatewayClass controllerName.

func (GatewayClassPredicate) Delete added in v1.3.0

Delete implements default DeleteEvent filter for validating a GatewayClass controllerName.

func (GatewayClassPredicate) Update

Update implements default UpdateEvent filter for validating a GatewayClass controllerName.

type GatewayServicePredicate

type GatewayServicePredicate struct {
	predicate.Funcs
	NSName types.NamespacedName
}

GatewayServicePredicate implements predicate functions for this Pod's Service.

func (GatewayServicePredicate) Update

Update implements the default UpdateEvent filter for the Gateway Service.

type ServicePortsChangedPredicate

type ServicePortsChangedPredicate struct {
	predicate.Funcs
}

ServicePortsChangedPredicate implements an update predicate function based on the Ports of a Service. This predicate will skip update events that have no change in the Service Ports and TargetPorts.

func (ServicePortsChangedPredicate) Update

Update implements default UpdateEvent filter for validating Service port changes.

Jump to

Keyboard shortcuts

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