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)
parent
1d4ee0697f
commit
2a608e3096
|
|
@ -30,8 +30,8 @@ class KubernetesTaskRunner {
|
||||||
);
|
);
|
||||||
let extraFlags = ``;
|
let extraFlags = ``;
|
||||||
extraFlags += (await KubernetesPods.IsPodRunning(podName, namespace, kubeClient))
|
extraFlags += (await KubernetesPods.IsPodRunning(podName, namespace, kubeClient))
|
||||||
? ` -f -c ${containerName}`
|
? ` -f -c ${containerName} -n ${namespace}`
|
||||||
: ` --previous`;
|
: ` --previous -n ${namespace}`;
|
||||||
|
|
||||||
const callback = (outputChunk: string) => {
|
const callback = (outputChunk: string) => {
|
||||||
output += outputChunk;
|
output += outputChunk;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue