From db7dd294895be3abebd23dbbbb63a8530ab90d31 Mon Sep 17 00:00:00 2001 From: Lucas Sonnabend Date: Wed, 8 Apr 2020 17:25:23 +0100 Subject: [PATCH] fix(chore): fix spurious logline from busybox I am seeing a lot of loglines in our garden k8s cluster from busybox like this: ls: /.garden/comms/done: No such file or directory As far as I can see this is spurious and safe to be hidden away --- garden-service/src/plugins/kubernetes/container/build.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/garden-service/src/plugins/kubernetes/container/build.ts b/garden-service/src/plugins/kubernetes/container/build.ts index b1696febf7..93c84927be 100644 --- a/garden-service/src/plugins/kubernetes/container/build.ts +++ b/garden-service/src/plugins/kubernetes/container/build.ts @@ -193,7 +193,7 @@ function getKanikoContainers(registryHostname: string, inClusterRegistry: boolea if (inClusterRegistry) { commandStr = dedent` while true; do - if pidof socat > /dev/null; then + if pidof socat 2> /dev/null; then ${skopeoCommand.join(" ")}; export exitcode=$? killall socat; @@ -506,7 +506,7 @@ async function runKaniko({ provider, namespace, log, module, args, outputStream // hackery. const commandStr = dedent` while true; do - if ls ${commsMountPath}/socatStarted > /dev/null; then + if ls ${commsMountPath}/socatStarted 2> /dev/null; then /kaniko/executor ${argsStr}; export exitcode=$?; touch ${commsMountPath}/done; @@ -583,7 +583,7 @@ async function runKaniko({ provider, namespace, log, module, args, outputStream "-c", dedent` while true; do - if pidof socat > /dev/null; then + if pidof socat 2> /dev/null; then touch ${commsMountPath}/socatStarted; break; else @@ -591,7 +591,7 @@ async function runKaniko({ provider, namespace, log, module, args, outputStream fi done while true; do - if ls ${commsMountPath}/done > /dev/null; then + if ls ${commsMountPath}/done 2> /dev/null; then killall socat; exit 0; else sleep 0.3;