You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a KonnectGatewayControlPlane is deleted, the control plane is deleted on the Konnect side and all attached entities (services, routes, consumers, ...) gets deleted as well. Then, all corresponding k8s resources (KongService,KongRoute,KongConsumer,...) gets deleted silently.
Expected Behavior
Similar to #786, If cascade deletion is expected, we should add logs to tell that the resource are deleted.
Steps To Reproduce
Operator Version
kubectl version
The text was updated successfully, but these errors were encountered:
pmalek
changed the title
Konnect entities: All entities gets deleted when attaching control plane deleted
Konnect entities: All entities get deleted when referenced ControlPlane gets deleted
Oct 28, 2024
We have to consider if we'd like to support a use case where users having CP and entities configured within it:
delete a CP
create a CP (with the same name and type)
Currently, after the CP deletion, users will get all their entities from within that CP deleted. Recreating the CP will not have the same config as all its configuration entities are gone at this point.
Changing the behavior to not delete these entities would:
make the configuration entities have their status updated
allow recreating the CP which would get all the configuration that previous CP had
make Konnect entities work more seamlessly with git-ops tools: there would be no drift between what's defined in source control and what's in cluster
This is a tough one. Cascade delete is what a lot of people would expect, but I'm not sure that's true in a cluster.
I think that I'd expect non-CP resources to remain in the cluster with an updated status, and if they recreate the CP they will start to reconcile again.
Current Behavior
When a
KonnectGatewayControlPlane
is deleted, the control plane is deleted on the Konnect side and all attached entities (services, routes, consumers, ...) gets deleted as well. Then, all corresponding k8s resources (KongService
,KongRoute
,KongConsumer
,...) gets deleted silently.Expected Behavior
Similar to #786, If cascade deletion is expected, we should add logs to tell that the resource are deleted.
Steps To Reproduce
Operator Version
kubectl version
The text was updated successfully, but these errors were encountered: