so the problem I have is that we have container injection runninginserting a sidecar. At the minute the flow job ends, but because the sidecar is still running it leaves a dangling resource. What i've done is to modify the job that is launched to kill the sidecar container when the flow finishes. In this case, using the KubernetesJobEnvironment wouldn't work, - I would be able to remove the sidecar from the inner-launched job, but not from the job launched by the k8s agent.
I guess alternately I could use a local agent with a k8s job environment, but it starts getting a bit off-piste - I haven't seen any examples of how to deploy a local agent into k8s