Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant't creating EventListener #1634

Open
Yeroha opened this issue Aug 28, 2023 · 4 comments
Open

Cant't creating EventListener #1634

Yeroha opened this issue Aug 28, 2023 · 4 comments
Labels
kind/question Issues or PRs that are questions around the project or a particular feature

Comments

@Yeroha
Copy link

Yeroha commented Aug 28, 2023

tkn version

Client version: 0.28.0
Pipeline version: v0.50.0
Triggers version: v0.24.1
Dashboard version: v0.38.0

k8s version:
v1.25.4+rke2r1

I have manifets:

apiVersion: triggers.tekton.dev/v1beta1
kind: EventListener
metadata:
  name: eventlistener-interceptor
  namespace: tkn-cicd
spec:
  serviceAccountName: tkn-git-ssh
  triggers:
    - name: gitlab-listener-trigger
      interceptors:
        - name: "gitlab-interceptor-payload"
          ref:
            name: "gitlab"
            kind: ClusterInterceptor
          params:
            - name: secretRef
              value:
                secretName: "gitlab-interceptor-secret"
                secretKey:  "secretToken"
            - name: eventTypes
              value:
                - "Push Hook"
                - "Tag Push Hook"
        - name: "CEL filter: only master branch"
          ref:
            name: "cel"
          params:
            - name: "filter"
              value: "body.ref in ['refs/heads/master']"
            - name: "overlays"
              value:
              - key: branch_name
                expression: "body.ref.split('/')[2]"
      bindings:
        - ref: tkn-trigger-binding
      template:
        ref: tkn-trigger-template

This manifest return error and EvenListener failed:

{"severity":"info","timestamp":"2023-08-28T09:47:49.353Z","caller":"logging/config.go:80","message":"Unable to read vcs.revision from binary"}
{"severity":"fatal","timestamp":"2023-08-28T09:47:49.386Z","logger":"eventlistener","caller":"v2/main.go:205","message":"Start returned an error","error":"Timed out waiting on CaBundle to available for clusterInterceptor: Timed out waiting on CaBundle to available for Interceptor: empty caBundle in clusterInterceptor spec"}

Please help us

@Yeroha Yeroha added the kind/bug Categorizes issue or PR as related to a bug. label Aug 28, 2023
@savitaashture
Copy link
Contributor

Hi @Yeroha

Can you check
kubectl get clusterinterceptor gitlab

And see is there a caBundle ?

@Yeroha
Copy link
Author

Yeroha commented Aug 28, 2023

Hi @savitaashture

kubectl get clusterinterceptor gitlab
NAME     AGE
gitlab   249d
kubectl describe clusterinterceptor gitlab
...........
Spec:
  Client Config:
    Ca Bundle:  LS0tLS1......
............

@savitaashture
Copy link
Contributor

savitaashture commented Aug 29, 2023

Oh so caBundle is there

can you tell me the steps which you followed to reproduce this issue

also what is the version of Triggers ?

@dibyom dibyom added kind/question Issues or PRs that are questions around the project or a particular feature and removed kind/bug Categorizes issue or PR as related to a bug. labels Sep 6, 2023
@boseabhishek
Copy link

Hello, I have been facing the same issue and I'm not even using any interceptor ref inside triggers in my eventlistener. Any help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Issues or PRs that are questions around the project or a particular feature
Projects
None yet
Development

No branches or pull requests

4 participants