Closed Timoses closed 1 year ago
The initial log line gave a hint:
[tekton-triggers-core-interceptors-7948fbb949-rmkpl] {"level":"info","ts":1690891975.432717,"caller":"server/server.go:154","msg":"Interceptor response is: &{Extensions:map[event:[push]] Continue:true Status:{Code:OK Message:}}"}
It states:
&{Extensions:map[event:[push]]
Using the following solves the issue:
interceptors:
- params:
- name: overlays
value:
- expression: header['X-Gitea-Event'][0]
key: event
ref:
kind: ClusterInterceptor
name: cel
(Note accessing the first array item of the header field)
Documented here: https://tekton.dev/docs/triggers/cel_expressions/#list-of-extensions
Expected Behavior
The trigger should create the Pipeline.
Actual Behavior
Error:
Steps to Reproduce the Problem
Additional Info
Kubernetes version:
Output of
kubectl version
:Tekton Pipeline version:
Client version: 0.31.1 Pipeline version: v0.50.0 Triggers version: v0.24.1
This is quite odd. I am trying to create a parameter via CEL interceptor from the Request Header. The error above seems to indicate that the first letter of that parameter is being interpreted ('i' for an issue event, 'p' for a push event) and then fails.
Something similar has been reported here: https://github.com/tektoncd/triggers/issues/1392
Let me know if you need more info.