jenkins-x / enhancements

Repository containing design proposals for Jenkins X enhancements
12 stars 16 forks source link

What about using natively Tekton Dashboard for Jx3 #49

Open JordanGoasdoue opened 1 year ago

JordanGoasdoue commented 1 year ago

Hello everyone,

After explaining it during the last Toc, i'm writting this enhancements: In order to have less to maintain in the jx3 ecosystem, step by step, what about firstly using natively the Tekton Dashboard instead of jx-ui ?

We did it and we are happy of this dashboard, here is a screenshot

Screenshot from 2023-03-22 17-40-36

Of course, we needed to configure lighthouse to automatically point to the tekton dashboard instead of the jx-one, don't worry it's possible.

When we changed our UI dashboard to the Tekton one, we obviously had to redo the Logs persistency part, back then following this old walkthrough, doing our own internal code for this => https://github.com/tektoncd/dashboard/blob/main/docs/walkthrough/walkthrough-logs.md

The great news is that tekton has finally implemented their own TEP-0117: Tekton Results Logs (https://github.com/tektoncd/community/pull/994)

Tekton Results aims to help users logically group CI/CD workload history and separate out long term result storage away from the Pipeline controller.

Tekton Results is composed of 2 main components: A queryable gRPC API server backed by persistent storage (see proto/v1alpha2 for the latest API spec). A controller to watch and report TaskRun and PipelineRun updates to the API server.

Thanks to this PR => https://github.com/tektoncd/results/pull/301 allowing to support log persistence outside of the host Kubernetes cluster. With this feature results will be able to store PipelineRun and TaskRun logs in the following persistent locations:

In order to persist the Logs with this Tekton Result, these are the needed dependencies:

Kubernetes version: 1.22.x
Tekton Pipeline version: 0.42.0

We would need to plug differently lighthouse because through tekton dashboard we don't handle pipelineactivity that is specific of jx3

What do you think ? @msvticket @ankitm123 @tomhobson @babadofar @rajatgupta24

msvticket commented 1 year ago

Can you make a rough outline of what changes need to be done in which Jenkins X repositories?

I don't think we should stop supporting Kubernetes 1.21 just yet, but we can first make Tekton Dashboard an optional alternative to jx-pipelines-visualizer. When we feel ready to make Tekton Dashboard the default I suspect it's time to stop supporting k8s 1.21 as well.

msvticket commented 1 year ago

An enhancement is supposed to be a document in this repo. The idea is that you create a pull request for the creation of the the enhancement proposal markdown document. But, oh, well...