@@ -10,13 +10,7 @@ import {
10
10
waitForJobToComplete ,
11
11
waitForPodPhases
12
12
} from '../k8s'
13
- import {
14
- containerVolumes ,
15
- DEFAULT_CONTAINER_ENTRY_POINT ,
16
- DEFAULT_CONTAINER_ENTRY_POINT_ARGS ,
17
- PodPhase ,
18
- writeEntryPointScript
19
- } from '../k8s/utils'
13
+ import { containerVolumes , PodPhase } from '../k8s/utils'
20
14
import { JOB_CONTAINER_NAME } from './constants'
21
15
22
16
export async function runContainerStep (
@@ -82,17 +76,13 @@ function createPodSpec(
82
76
const podContainer = new k8s . V1Container ( )
83
77
podContainer . name = JOB_CONTAINER_NAME
84
78
podContainer . image = container . image
85
-
86
- const { entryPoint, entryPointArgs } = container
87
- container . entryPoint = 'sh'
88
-
89
- const { containerPath } = writeEntryPointScript (
90
- container . workingDirectory ,
91
- entryPoint || DEFAULT_CONTAINER_ENTRY_POINT ,
92
- entryPoint ? entryPointArgs || [ ] : DEFAULT_CONTAINER_ENTRY_POINT_ARGS
93
- )
94
- container . entryPointArgs = [ '-e' , containerPath ]
95
- podContainer . command = [ container . entryPoint , ...container . entryPointArgs ]
79
+ podContainer . workingDir = container . workingDirectory
80
+ podContainer . command = container . entryPoint
81
+ ? [ container . entryPoint ]
82
+ : undefined
83
+ podContainer . args = container . entryPointArgs ?. length
84
+ ? container . entryPointArgs
85
+ : undefined
96
86
97
87
if ( secretName ) {
98
88
podContainer . envFrom = [
0 commit comments