Documentation
¶
Overview ¶
Copyright 2025 HAProxy Technologies LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2025 HAProxy Technologies LLC ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2025 HAProxy Technologies LLC ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2025 HAProxy Technologies LLC ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2025 HAProxy Technologies LLC ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnotationPredicate ¶
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 ¶
func (cp AnnotationPredicate) Create(e event.CreateEvent) bool
Create filters CreateEvents based on the Annotation.
func (AnnotationPredicate) Update ¶
func (cp AnnotationPredicate) Update(e event.UpdateEvent) bool
Update filters UpdateEvents based on the Annotation.
type DefaultsPredicate ¶ added in v0.9.2
DefaultsPredicate filters Defaults CR events to only those whose spec.name equals constants.DefaultsSectionName.
func (DefaultsPredicate) Create ¶ added in v0.9.2
func (DefaultsPredicate) Create(e event.CreateEvent) bool
func (DefaultsPredicate) Delete ¶ added in v0.9.2
func (DefaultsPredicate) Delete(e event.DeleteEvent) bool
func (DefaultsPredicate) Update ¶ added in v0.9.2
func (DefaultsPredicate) Update(e event.UpdateEvent) bool
type GatewayClassPredicate ¶
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 ¶
func (gcp GatewayClassPredicate) Create(e event.CreateEvent) bool
Create implements default CreateEvent filter for validating a GatewayClass controllerName.
func (GatewayClassPredicate) Delete ¶
func (gcp GatewayClassPredicate) Delete(e event.DeleteEvent) bool
Delete implements default DeleteEvent filter for validating a GatewayClass controllerName.
func (GatewayClassPredicate) Update ¶
func (gcp GatewayClassPredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for validating a GatewayClass controllerName.
type GatewayPredicate ¶
GatewayPredicate implements a predicate function based on the gatewayClassName: of a Gateway. This predicate will skip events for Gateways that don't reference this gatewayClass.
func (GatewayPredicate) Create ¶
func (gp GatewayPredicate) Create(e event.CreateEvent) bool
Create implements default CreateEvent filter for validating a Gateway gatewayClassName.
func (GatewayPredicate) Delete ¶
func (gp GatewayPredicate) Delete(e event.DeleteEvent) bool
Delete implements default DeleteEvent filter for validating a Gateway gatewayClassName.
func (GatewayPredicate) Update ¶
func (gp GatewayPredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for validating a Gateway gatewayClassName.
type HugConfPredicate ¶ added in v0.9.1
type HugConfPredicate struct {
predicate.Funcs
ControllerConfName types.NamespacedName
}
HugConfPredicate implements a predicate function based on the controller conf CRD ns/name This predicate will skip events for GatewayClasses that don't reference this controller.
func (HugConfPredicate) Create ¶ added in v0.9.1
func (p HugConfPredicate) Create(e event.CreateEvent) bool
Create implements default CreateEvent filter for validating a controller conf CRD ns/name.
func (HugConfPredicate) Delete ¶ added in v0.9.1
func (p HugConfPredicate) Delete(e event.DeleteEvent) bool
Delete implements default DeleteEvent filter for validating a controller conf CRD ns/name.
func (HugConfPredicate) Update ¶ added in v0.9.1
func (p HugConfPredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for validating a controller conf CRD ns/name.
type NamespacePredicate ¶
func NewNamespacePredicate ¶
func NewNamespacePredicate(ns []string) NamespacePredicate
func (NamespacePredicate) Create ¶
func (p NamespacePredicate) Create(e event.CreateEvent) bool
Create implements default CreateEvent filter for validating a namespace among a list.
func (NamespacePredicate) Delete ¶
func (p NamespacePredicate) Delete(e event.DeleteEvent) bool
Delete implements default DeleteEvent filter for validating a namespace among a list.
func (NamespacePredicate) Update ¶
func (p NamespacePredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for validating a namespace among a list.