AkhDmitrii opened a new issue, #7000: URL: https://github.com/apache/camel-k/issues/7000
### Bug description After removing a route from an Integration, the running pod can keep serving it. We saw this on kind with a prebuilt container image and hot reload enabled for mounted ConfigMaps. The controller repeatedly logged `no kit nor container image set on integration` even though `spec.traits.container.image` still named the image. We deployed one route, added a second, waited for both to answer, then removed the second route and its source ConfigMap. The remaining route should keep responding and the removed route should return HTTP 404. In the [failing run](https://github.com/Netcracker/qubership-integration-platform/actions/runs/46339164602/job/141586457985), both POST-only routes still returned HTTP 405 to GET requests after three minutes. The [same test](https://github.com/Netcracker/qubership-integration-platform/blob/9753b8dd33c68a89b717420e4fc2fa6b8997dd82/e2e/specs/k8s/custom-resources.spec.ts#L37) passed in a [rerun on the same commit](https://github.com/Netcracker/qubership-integration-platform/actions/runs/46407079255/job/141808111556). We reproduced the failure by forcing this order of status writes while adding the second route: 1. Start with an Integration in `Deploying` with a populated `status.image`. 2. Reset its status to `Initialization`, which clears the image. 3. Apply the transition to `Running` computed from the copy read in step 1. The API server accepts the stale patch. The resulting status has phase `Running`, an empty image and no IntegrationKit. The monitor returns the error above before checking for changes to the spec. In the controlled reproduction, removing the route advanced the generation to 3 while the observed generation stayed at 2. ### Camel K or runtime version Camel K 2.11.0. A controller test also reproduces the stale write on a12c64f, the source of the November 30 build of 2.12.0-nightly. _AI-generated by OpenAI Codex on behalf of @AkhDmitrii._ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
