When a Gateway or GatewayParameters is updated or deleted such that a previously-created PodDisruptionBudget, HorizontalPodAutoscaler, or VerticalPodAutoscaler is no longer required, the controller does not currently remove those resources. This is a resource leak. ownerReferences-based garbage collection is insufficient here because it only fires when the owner is deleted — if the owner (e.g. the Gateway) still exists but has been updated to no longer require a PDB/HPA/VPA, Kubernetes will not clean up the now-orphaned resource. The `PruneRemovedResources` method on the `Deployer` collects pdb/hpa/vpa resources owned by the reconciling gateway and checks them against the list of desired objects and prunes those which are undesired.
End-to-End Tests
Background
Kgateway is built to integrate with a user's environment. By enabling users to select their preferred tools for scheduling, persistence, and security, we must ensure that we have end-to-end tests to validate these scenarios.
We support the following types of end-to-end tests:
CI
Each test suite may run on different infrastructure. Refer to the README of each test suite for more information.