Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NginxLabelPredicate ¶
func NginxLabelPredicate(selector metav1.LabelSelector) k8spredicate.Predicate
NginxLabelPredicate returns a predicate that only matches resources with the nginx labels.
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 (ap AnnotationPredicate) Create(e event.CreateEvent) bool
Create filters CreateEvents based on the Annotation.
func (AnnotationPredicate) Update ¶
func (ap AnnotationPredicate) Update(e event.UpdateEvent) bool
Update filters UpdateEvents based on the Annotation.
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 RestartDeploymentAnnotationPredicate ¶
RestartDeploymentAnnotationPredicate skips update events if they are due to a rolling restart. This type of event is triggered by adding an annotation to the deployment's PodSpec. This is used by the provisioner to ensure it allows for rolling restarts of the nginx deployment without reverting the annotation and deleting the new pod(s). Otherwise, if a user changes the nginx deployment, we want to see that event so we can revert it back to the configuration that we expect it to have.
func (RestartDeploymentAnnotationPredicate) Update ¶
func (RestartDeploymentAnnotationPredicate) Update(e event.UpdateEvent) bool
Update filters UpdateEvents based on if the annotation is present or changed.
type SecretNamePredicate ¶
SecretNamePredicate implements a predicate function that returns true if the Secret matches the expected namespace and one of the expected names.
func (SecretNamePredicate) Create ¶
func (sp SecretNamePredicate) Create(e event.CreateEvent) bool
Create filters CreateEvents based on the Secret name.
func (SecretNamePredicate) Delete ¶
func (sp SecretNamePredicate) Delete(e event.DeleteEvent) bool
Delete filters DeleteEvents based on the Secret name.
func (SecretNamePredicate) Generic ¶
func (sp SecretNamePredicate) Generic(e event.GenericEvent) bool
Generic filters GenericEvents based on the Secret name.
func (SecretNamePredicate) Update ¶
func (sp SecretNamePredicate) Update(e event.UpdateEvent) bool
Update filters UpdateEvents based on the Secret name.
type ServiceChangedPredicate ¶
ServiceChangedPredicate implements an update predicate function for a Service. This predicate will skip update events that have no change in a Service's Ports, TargetPorts, or AppProtocols.
func (ServiceChangedPredicate) Update ¶
func (ServiceChangedPredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for validating Service port information changes.