Fixes bug where kubectl picks a different namespace (e.g. cloud runner is kicked from self hosted k8s agents that are in a non default namespace)

pull/763/head
harry8525 2025-11-29 08:25:02 +00:00
parent 1d4ee0697f
commit 2a608e3096
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ class KubernetesTaskRunner {
);
let extraFlags = ``;
extraFlags += (await KubernetesPods.IsPodRunning(podName, namespace, kubeClient))
? ` -f -c ${containerName}`
: ` --previous`;
? ` -f -c ${containerName} -n ${namespace}`
: ` --previous -n ${namespace}`;
const callback = (outputChunk: string) => {
output += outputChunk;