Improve Kubernetes resource limit/request/overwrite integration tests
Description
Add integration tests for k8s resource limit/request/overwrites as manual QA of these this takes too long.
Proposal
- Add a reusable function
executeBuildWithPodCheckthat accepts an asseration callback. This:- creates a long running build, with one service
- waits until the k8s pod to execute the build exists
- executes the asseration callback with the pod, and the build, helper and service container.
- add
testResourceLimitsthat usesexecuteBuildWithPodCheckwith different build configurations, examining the containers that have been created to ensure the logic has been appropriately applied.