tektoncd / dashboard

A dashboard for Tekton!
Apache License 2.0
863 stars 258 forks source link

How to configure tekton dashboard pod log outputPath #3375

Closed Dairy-cn closed 2 months ago

Dairy-cn commented 3 months ago

Feature request

How to configure tekton dashboard pod log outputPath

Alternatives

I need to add Sidecars on the tekton dashboard deployment, such as the tekton pipelines controller or tekton pipelines webhook, and configure outputPaths and errorOutputPaths on the configmap (config logging) so that log information can be collected on Sidecars. Now I don't know if Tekton dashboard has such a feature that can output pod logs to a file. If so, how should it be configured? Thank you very much.

AlanGreene commented 3 months ago

Hi @Dairy-cn, the log output path is not currently configurable. We're using https://pkg.go.dev/go.uber.org/zap and using the existing presets the logs are output to stdout / stderr by default.

Can you elaborate on how you plan to use this / why changing the output location is important to you? It's not clear to me if what you've listed under 'alternatives' is actually an alternative you've considered or if it's really just describing what you're currently trying to do.