tektoncd / tektoncd/cli

Add tkn verify/validate subcommand

Open
#2,588 0 comments 0 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

Feature request

Add a new subcommand to the tkn cli to verify/validate pipeline syntax. There is a dru-run flag, but it requires k8s cluster or at least credentials. Instead we can de-serialize the yaml file and try to create the Tekton resource, which does not require k8s clusters or credentials.
Furthermore we can also test for remote resolutions of referenced objects.

Use case
UI Example

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 reading the tkn CLI's existing dry-run handling and command structure. Clarify the supported YAML validation flow, including Tekton resource creation without a cluster and checks for remote resolutions; done should include a defined subcommand interface and validation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.