tektoncd / triggers

Event triggering with Tekton!
Apache License 2.0
546 stars 416 forks source link

Cannot create EventListener with “Timed out waiting on CaBundle to available for Interceptor: empty caBundle in clusterInterceptor spec“ #1681

Closed Ceasarkang closed 7 months ago

Ceasarkang commented 7 months ago

EventListener.yaml

apiVersion: triggers.tekton.dev/v1alpha1
kind: EventListener
metadata:
  name: regression
spec:
  serviceAccountName: autotest-pipeline
  triggers:
    - name: regression-trigger
      template:
        ref: regression
      bindings:
        - ref: pipeline-binding 

log in event_listener

 $ oc logs el-regression-8955f8b76-69zh7 -n autotest
{"severity":"fatal","timestamp":"2023-12-26T11:35:01.891Z","logger":"eventlistener","caller":"v2/main.go:205","message":"Start returned an error","commit":"acb7b71-dirty","error":"Timed out waiting on CaBundle to available for clusterInterceptor: Timed out waiting on CaBundle to available for Interceptor: empty caBundle in clusterInterceptor spec"}

All clusterInterceptor

$ kubectl get clusterInterceptor
No resources found

Steps to Reproduce the Problem

  1. kubectl apply -f ./event_listener.yaml
  2. event_listener pod stay error and crash.

Additional Info

Kubernetes version:

 $ kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.1", GitCommit:"3ddd0f45aa91e2f30c70734b175631bec5b5825a", GitTreeState:"clean", BuildDate:"2022-05-24T12:26:19Z", GoVersion:"go1.18.2", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"28", GitVersion:"v1.28.0", GitCommit:"855e7c48de7388eb330da0f8d9d2394ee818fb8d", GitTreeState:"clean", BuildDate:"2023-08-15T10:15:54Z", GoVersion:"go1.20.7", Compiler:"gc", Platform:"linux/amd64"}\