Skip to content

Commit 5984503

Browse files
committed
fix: enable stdin on exec. fixes kata containers output
1 parent dd4f7da commit 5984503

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/k8s/src/hooks/run-script-step.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export async function runScriptStep(
2626
await execPodStep(
2727
[args.entryPoint, ...args.entryPointArgs],
2828
state.jobPod,
29-
JOB_CONTAINER_NAME
29+
JOB_CONTAINER_NAME,
30+
process.stdin
3031
)
3132
} catch (err) {
3233
core.debug(`execPodStep failed: ${JSON.stringify(err)}`)

packages/k8s/src/k8s/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,8 @@ export async function isPodContainerAlpine(
525525
`'[ $(cat /etc/*release* | grep -i -e "^ID=*alpine*" -c) != 0 ] || exit 1'`
526526
],
527527
podName,
528-
containerName
528+
containerName,
529+
process.stdin
529530
)
530531
} catch (err) {
531532
isAlpine = false

0 commit comments

Comments
 (0)