emissary-ingress / emissary

open source Kubernetes-native API gateway for microservices built on the Envoy Proxy
https://www.getambassador.io
Apache License 2.0
4.36k stars 683 forks source link

apiext: remove cache crd cache resitriction #5538

Closed LanceEa closed 8 months ago

LanceEa commented 8 months ago

Description

To limit the scope of CRD's being pulled into the Manager cache a resitrction was put on the default labels. This works in most cases when users are using the default crds provided.

However, in some cases users have their own conventions on labels so if the label was modified or removed then the CRD Patching would not work.

This removes the cache option and instead relies upon the getAmbassadorioPredicate for filtering out events for non getambassadorio crds that we do not care about as seen in pkg/apiext/internal/controller/crd/predicate.go

Related Issues

N/A

Testing

No additional testing added at this time.

Checklist