Skip to content

Commit

Permalink
0.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstenboom committed Jan 3, 2023
1 parent 932f186 commit b86c550
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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.6",
"version": "0.3.7",
"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
7 changes: 4 additions & 3 deletions packages/k8s/src/hooks/prepare-job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
PodPhase
} from '../k8s/utils'
import { JOB_CONTAINER_NAME } from './constants'
import { HttpError } from '@kubernetes/client-node'
import { CoreV1EndpointPort, HttpError } from '@kubernetes/client-node'

export async function prepareJob(
args: prepareJobArgs,
Expand All @@ -28,13 +28,14 @@ export async function prepareJob(
throw new Error('Job Container is required.')
}

core.debug("running prepareJob on version 0.3.6")
core.debug("running prepareJob on version 0.3.7")
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.6`)
core.debug(`Using image '${args.container.image}' for job image, v0.3.7`)
container = createContainerSpec(args.container, JOB_CONTAINER_NAME, true)
}

Expand Down

0 comments on commit b86c550

Please sign in to comment.