tektoncd / cli

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

Use the tkn CLI to install Tekton CRDs into cluster (QuickStart helper) #2317

Open IngwiePhoenix opened 6 months ago

IngwiePhoenix commented 6 months ago

Feature request

I would like to request the CLI being able to install the Tekton CRDs required to make the CI/CD system work. There is no Helm chart, and the documentation lists a myriad of kubectl apply -f http... commands that are harder to track. Instead, it'd be awesome to simply use the tkn CLI for that.

Use case

When getting started and wanting to dive right in, having a "Install tkn, run tkn install and try these pipelines" as a Getting Started quickstart.

It may also allow the user to specify the version of the various CRDs to be installed, which could be tracked as part of GitOps.

UI Example

tkn install # Install latest
tkn install v1.2.3 # Install a specific version
tkn apply # Take a file, or read a file from the current working directory 
          # with a base config of what should or should not be installed.
tkn crds # Show installed version/s if applicable
tkn uninstall # Remove CRDs

Under the hood, it may as well just run the kubectl apply -f http... commands; but it would certainly make "getting into it" easier.

piyush-garg commented 6 months ago

@IngwiePhoenix Thanks for creating the issue. Have you tried https://github.com/tektoncd/operator, it provides the one click install UX

IngwiePhoenix commented 6 months ago

That's pretty neat, hadn't seen that before. This would make a neat "helm chart lite", which just installs the operator and takes the installation type as a value. Basic, but gets the job done.

That said, why is there no official Helm chart to install the CRDs and friends? I haven't looked into OpenShift yet, since all I have is k3s...

EDIT: Damn, sometimes im blind... xD image