From a50349c0a27923504de5fe0661e2a6e0e51919b2 Mon Sep 17 00:00:00 2001 From: "Matt Moore (via sockpuppet)" Date: Tue, 25 Dec 2018 14:01:51 +0000 Subject: [PATCH] Format markdown Produced via: `prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github)` --- test/logs/README.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/test/logs/README.md b/test/logs/README.md index 62e498044fd..a14e98de11f 100644 --- a/test/logs/README.md +++ b/test/logs/README.md @@ -3,10 +3,13 @@ - [How to follow PipelineRun logs?](#pipelinerun) - [How to follow TaskRun logs?](#taskrun) -`Pipelinerun` object creates taskruns depending on the definition of underlying `Pipeline` definition. -Each `TaskRun` object creates Kubernetes Pod and all the steps are translated into init containers. +`Pipelinerun` object creates taskruns depending on the definition of underlying +`Pipeline` definition. Each `TaskRun` object creates Kubernetes Pod and all the +steps are translated into init containers. -There is a "gotcha" about tailing logs for init container. Logs cannot be retrieved from pod that has been shut down for a while. In this case tailing logs will return error `Unable to retrieve container logs`. +There is a "gotcha" about tailing logs for init container. Logs cannot be +retrieved from pod that has been shut down for a while. In this case tailing +logs will return error `Unable to retrieve container logs`. ```shell go run test/logs/main.go [-n NAMESPACE] [-pr PIPELINERUN-NAME] / [-tr TASKRUN_NAME] [-f FILE-NAME] @@ -21,19 +24,24 @@ go run test/logs/main.go [-n NAMESPACE] [-pr PIPELINERUN-NAME] / [-tr TASKRUN_NA Name of the file to write logs. ``` -Command provides option to change namespace with `-n` flag. If user wants to dump logs to a file then `-f` flag could be used. By default logs are dumped to `stdout`. +Command provides option to change namespace with `-n` flag. If user wants to +dump logs to a file then `-f` flag could be used. By default logs are dumped to +`stdout`. ### PipelineRun -The following command will tail logs for all `Taskruns` created by pipelinerun `my-pr` in namespace `default`. +The following command will tail logs for all `Taskruns` created by pipelinerun +`my-pr` in namespace `default`. ```shell go run test/logs/main.go -pr my-pr ``` + ### TaskRun -The following command will tail logs for all specified `Taskrun` in namespace `default`. +The following command will tail logs for all specified `Taskrun` in namespace +`default`. ```shell go run test/logs/main.go -tr my-taskrun -``` \ No newline at end of file +```