Skip to content

Commit

Permalink
the fix... 0.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstenboom committed Jan 3, 2023
1 parent b86c550 commit f538f56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hooks",
"version": "0.3.7",
"version": "0.3.8",
"description": "Three projects are included - k8s: a kubernetes hook implementation that spins up pods dynamically to run a job - docker: A hook implementation of the runner's docker implementation - A hook lib, which contains shared typescript definitions and utilities that the other packages consume",
"main": "",
"directories": {
Expand Down
8 changes: 4 additions & 4 deletions packages/k8s/src/hooks/prepare-job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ export async function prepareJob(
throw new Error('Job Container is required.')
}

core.debug("running prepareJob on version 0.3.7")
core.debug("running prepareJob on version 0.3.8")
core.debug(JSON.stringify(args))

await prunePods()
await copyExternalsToRoot()
let container: k8s.V1Container | undefined = undefined
if (args.container?.image) {
core.debug(`Using image '${args.container.image}' for job image, v0.3.7`)
core.debug(`Using image '${args.container.image}' for job image, v0.3.8`)
container = createContainerSpec(args.container, JOB_CONTAINER_NAME, true)
}

Expand Down Expand Up @@ -182,8 +182,8 @@ export function createContainerSpec(
podContainer.workingDir = container.workingDirectory
}

const podCommand = container.entryPoint !== undefined ? [container.entryPoint] : undefined
if (podCommand !== undefined){
const podCommand = container.entryPoint ? [container.entryPoint] : undefined
if (podCommand !== undefined ){
podContainer.command = podCommand
}

Expand Down

0 comments on commit f538f56

Please sign in to comment.