I've installed Tekton Operator and Tekton Config as described here:
https://tekton.dev/docs/operator/tektonconfig/
In the tektonconfig, it has a block like this:
pruner:
resources:
- taskrun
- pipelinerun
keep: 3
schedule: "* * * * *"
However, this will result in it keeping only 3 copies of taskruns AND pipelineruns. A single pipeline may have a dozen tasks in it. As soon as you delete the taskruns from the pipelinerun, you can no longer see the logs for that pipelinerun so it's useless.
I don't see a way to have pipelineruns use different pruning methods compared to taskruns. This makes it almost pointless to enable this feature. Is anyone aware of a better way to prune pipeline and task runs in tekton?
Thanks!
Update: turns out I can just exclude the taskrun line from my resources and it will automatically prune the taskruns when the pipelineruns are pruned so it's a non issue.