The Result Watcher is a Kubernetes Controller that watches for changes to certain Tekton types and automatically creates/updates their data in the Result API.
The Watcher currently supports the following types:
tekton.dev/v1beta1 TaskRun
tekton.dev/v1beta1 PipelineRun
The Watcher uses Object data to automatically detect and group related Records into the same Result. The following data is checked (listed in order of precedence):
results.tekton.dev/result
annotation. This should correspond to the fullResult.name
identifier (e.g.foo/results/bar
).triggers.tekton.dev/triggers-eventid
label (this is generated from Objects created via Tekton Triggers)- An OwnerReference to a PipelineRun.
If no annotation is detected, the Watcher will automatically generate a new Result name for the Object.