Skip to content

Commit 7e6df69

Browse files
loopingzabalam666
authored andcommitted
fix: patch for postHook without condition
1 parent 475f855 commit 7e6df69

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/kubernetes/src/services/kuberunner.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class KubeRunnerParameters extends RunnerParameters implements Kubernetes
5353
/**
5454
* Type of action returned by LocalRunner
5555
*/
56-
export interface KubeJob {}
56+
export interface KubeJob extends k8s.V1Job {}
5757

5858
/**
5959
* Run a Job locally on the server by spawning a child process
@@ -100,8 +100,7 @@ export default class KubeRunner<T extends KubeRunnerParameters = KubeRunnerParam
100100
}
101101
}
102102
// Launch the resource now
103-
const result = await this.client.create(resources);
104-
return { metadata: result.body.metadata, apiVersion: result.body.apiVersion, kind: result.body.kind };
103+
return await this.client.create(resources);
105104
}
106105

107106
/**

0 commit comments

Comments
 (0)