From 14eb3d800b9e49e6cb197f3bd3ac2712b98c81ea Mon Sep 17 00:00:00 2001 From: sbwsg Date: Thu, 3 Mar 2022 13:01:42 -0500 Subject: [PATCH] Add log line to debg workspace-in-sidecar example Prior to this commit the workspace-in-sidecar example didn't print anything before creating a fifo file in its first Step. When the example fails we are missing information here that would be useful to debug whether the Step ever started or is blocking on that `mkfifo` call. This commit adds the log line we need to debug whether the Step ever starts. --- examples/v1beta1/taskruns/alpha/workspace-in-sidecar.yaml | 1 + examples/v1beta1/taskruns/workspace-in-sidecar.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/v1beta1/taskruns/alpha/workspace-in-sidecar.yaml b/examples/v1beta1/taskruns/alpha/workspace-in-sidecar.yaml index d857f669f73..de2e0d52b87 100644 --- a/examples/v1beta1/taskruns/alpha/workspace-in-sidecar.yaml +++ b/examples/v1beta1/taskruns/alpha/workspace-in-sidecar.yaml @@ -24,6 +24,7 @@ spec: cpu: "100m" script: | #!/usr/bin/env ash + echo "Creating FIFO..." mkfifo "$(workspaces.signals.path)/channel" echo "Greeting sidecar..." echo "hello there" > "$(workspaces.signals.path)/channel" diff --git a/examples/v1beta1/taskruns/workspace-in-sidecar.yaml b/examples/v1beta1/taskruns/workspace-in-sidecar.yaml index fd46e2d873b..80c7ec9b798 100644 --- a/examples/v1beta1/taskruns/workspace-in-sidecar.yaml +++ b/examples/v1beta1/taskruns/workspace-in-sidecar.yaml @@ -25,6 +25,7 @@ spec: cpu: "100m" script: | #!/usr/bin/env ash + echo "Creating FIFO..." mkfifo "$(workspaces.signals.path)/channel" echo "Greeting sidecar..." echo "hello there" > "$(workspaces.signals.path)/channel"