Skip to content

Commit

Permalink
fix(chore): fix spurious logline from busybox
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Lucas Sonnabend authored and edvald committed Apr 8, 2020
1 parent 006ad98 commit db7dd29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions garden-service/src/plugins/kubernetes/container/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -583,15 +583,15 @@ 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
sleep 0.3;
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;
Expand Down

0 comments on commit db7dd29

Please sign in to comment.