tektoncd / cli

A CLI for interacting with Tekton!
Apache License 2.0
430 stars 250 forks source link

Different log output for `tkn t logs` and `tkn tr logs` #2234

Open Senjuti256 opened 9 months ago

Senjuti256 commented 9 months ago

Versions and Operating System

Expected Behavior

Running tkn t log and tkn tr log gives a different representation but they are expected to be the same.

Actual Behavior

  $ tkn t ls
  NAME         DESCRIPTION   AGE
  echo-task                  33 minutes ago
  print-task                 33 minutes ago

  $ tkn tr ls
  NAME                           STARTED          DURATION   STATUS
  echo-pipeline-run-echo-task    33 minutes ago   5s         Succeeded
  echo-pipeline-run-print-task   33 minutes ago   7s         Succeeded

  $ tkn t logs
  ? Select task: echo-task
  Hello, Tekton!

  $ tkn tr logs
  ? Select taskrun: echo-pipeline-run-echo-task started 34 minutes ago
  [echo] Hello, Tekton!

Steps to Reproduce the Problem

  1. Create sample Task and Taskrun YAML files.
  2. Run tkn t logs.
  3. Run tkn tr logs
  4. Compare both.

Additional Info

vinamra28 commented 6 months ago

/assign @Senjuti256