tektoncd / tektoncd/cli

Add loglevel tracing option to tkn

Open
#126 13 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature
Dominant language
Go
Stars
461
Forks
277
Avg merge
16h 48m
Merged PRs (30d)
95

Description

--loglevel in for example the openshift client is a pretty useful option for debugging and introspectability of what the CLI is doing, it's a good example too for other people who want to talk to tekton rest api on 'how to do stuff'. For example :

image

Add global --loglevel option with the level as specified in oc code which would print the REST exchange and optionally have a curl constructed for easy replay,

  • Add --loglevel command
  • Add curl output

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating tkn's global option handling and the code that performs REST requests, then compare the requested log levels with the referenced oc behavior. Done means a global --loglevel option traces the REST exchange and, if implemented, emits a replayable curl command; the issue checklist identifies both outcomes.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.