Closed badamowicz closed 2 years ago
hey @badamowicz sorry for the delayed response.
Looking at the error message error calling MarshalJSON for type v1beta1.ArrayOrString: impossible ArrayOrString.Type:
, I think what is happening is that Triggers is creating a pipelinerun but the pipeline webhook is rejecting it.
The error message comes from https://github.com/tektoncd/pipeline/blob/main/pkg/apis/pipeline/v1beta1/param_types.go#L131
I'd look in the TriggerTemplate and see if there is a place where you are specifying a param whose type is not string or array for some reason (maybe you are specifying an empty string or null or something?) It does seem weird though that this is happening for only a small percentage of calls.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
with a justification.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen
with a justification.
/lifecycle stale
Send feedback to tektoncd/plumbing.
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
with a justification.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen
with a justification.
/lifecycle rotten
Send feedback to tektoncd/plumbing.
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
with a justification.
Mark the issue as fresh with /remove-lifecycle rotten
with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen
with a justification.
/close
Send feedback to tektoncd/plumbing.
@tekton-robot: Closing this issue.
Expected Behavior
Every time an EventListener receives a JSON payload by a webhook (e.g. from Bitbucket) it executes the associated Trigger.
Actual Behavior
Sometimes the EL will emit this error message:
Steps to Reproduce the Problem
As mentioned it is unfortunately not possible to create a reproducible scenario. It happens in about 5% of the EL calls.
Additional Info
Kubernetes version:
It also happens on our Openshift cluster:
Tekton Pipeline version:
Triggers version is v0.14.2. (For whatever reason not shown in the output.)
On Openshift:
Important hint
It is important to note that the problem occurred after we introduced FluxCD for managing all our resources inside thee clusters. So maybe this is not a Trigger bug at all and instead some other weird things are going on. So this issue is more about asking the question: Are there any ideas / suggestions of how we could dig deeper into this issue to get more information? Thanks in advance!