Kong / gateway-operator

Kubernetes Operator for Kong Gateways
Apache License 2.0
52 stars 15 forks source link

refactor(konnect): refactor plugin reconciler watch handlers #650

Closed pmalek closed 1 month ago

pmalek commented 1 month ago

What this PR does / why we need it:

Refactors mapKongRoutes and mapKongServices into mapPluginsFromAnnotation which takes 1 of 4 supported types to have konghq.com/plugins annotation set and enqueues plugins from that annotation.

This PR also removes stuttering from some of the var and const names.