Kong / gateway-operator

Kubernetes Operator for Kong Gateways
Apache License 2.0
49 stars 11 forks source link

Ignore entities attached to another entity with no Konnect control plane reference #629

Open randmonkey opened 1 week ago

randmonkey commented 1 week ago

Problem Statement

In the current reconcilers, if an entity (like KongRoute and KongTarget) is attached to another entity (KongService or KongUpstream) that has Programmed condition set but the entity being attached to (KongService or KongTarget) does not have a ControlPlaneRef, the reconciler will return an error in the Reconcile method. This would cause endless reconciliation backoff for the entities attached to another entity that does not have a Konnect control plane reference (for example, some other controllers create them in on-prem Kong gateways.). ...

Proposed Solution

Ignore the entity in Konnect entity reconciler if it is attached to another entity that does not have a Konnect control plane ref. Because the situation means that the entity (and the entity it attached to) are not controlled by Konnect. ...

Additional Information

...

Acceptance Criteria