From f538f564ff4dfe32c3856d70684f9a6c5a0f58c9 Mon Sep 17 00:00:00 2001 From: Niels ten Boom Date: Tue, 3 Jan 2023 12:51:54 +0100 Subject: [PATCH] the fix... 0.3.8 --- package.json | 2 +- packages/k8s/src/hooks/prepare-job.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 859f2a84..0bb4dbcd 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/packages/k8s/src/hooks/prepare-job.ts b/packages/k8s/src/hooks/prepare-job.ts index 6f599cda..81810520 100644 --- a/packages/k8s/src/hooks/prepare-job.ts +++ b/packages/k8s/src/hooks/prepare-job.ts @@ -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) } @@ -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 }