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 executeBuildWithPodCheck that 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 testResourceLimits that uses executeBuildWithPodCheck with different build configurations, examining the containers that have been created to ensure the logic has been appropriately applied.

Links to related issues and merge requests / references

!2422 (closed)