logs

command
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

README

How to follow log outputs

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 containers (to be fixed in #224). 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.

go run test/logs/main.go [-n NAMESPACE] [-pr PIPELINERUN-NAME] / [-tr TASKRUN_NAME] [-f FILE-NAME]

General flags

-n string
    The namespace scope for this CLI request (default "default")
-f string
    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.

PipelineRun

The following command will tail logs for all Taskruns created by pipelinerun my-pr in namespace default.

go run test/logs/main.go -pr my-pr

TaskRun

The following command will tail logs for all specified Taskrun in namespace default.

go run test/logs/main.go -tr my-taskrun

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL