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

getting started example error #1627

Open
hemantha-kumara opened this issue Aug 11, 2023 · 3 comments
Open

getting started example error #1627

hemantha-kumara opened this issue Aug 11, 2023 · 3 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. kind/documentation Categorizes issue or PR as related to documentation.

Comments

@hemantha-kumara
Copy link

Expected Behavior

https://github.com/tektoncd/triggers/tree/main/docs/getting-started All jobs should move to the completed state

Actual Behavior

send-cloud-event-pod task is failing with the logs 'Currently sendevent only supports JSON event data'

Steps to Reproduce the Problem

Additional Info

  • Kubernetes version:

    Output of kubectl version:

Client Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.2", GitCommit:"31aa3e89a926f81aa0af30320ffcb71acadf3015", GitTreeState:"clean", BuildDate:"2023-04-19T07:34:25Z", GoVersion:"go1.19.6", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"26+", GitVersion:"v1.26.7-eks-2d98532", GitCommit:"c9c3fc1fdf677f38b8d26568c10b921a1235fa43", GitTreeState:"clean", BuildDate:"2023-07-28T16:51:21Z", GoVersion:"go1.20.6", Compiler:"gc", Platform:"linux/amd64"}


- Tekton Pipeline version:

**Output of `tkn version` or `kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'`**
v0.50.0

<!-- Any other additional information -->
@hemantha-kumara hemantha-kumara added the kind/bug Categorizes issue or PR as related to a bug. label Aug 11, 2023
@hemantha-kumara
Copy link
Author

The issue could be due to the pipeline task send-cloud-event is not having the below three params(especially data)

  - name: eventType
    value: "test-event-type"
  - name: source
    value: "event-source-5000"
  - name: data
    value: "{\"data\": \"dude\"}"

I added these three params in the pipeline and it started working.

@hemantha-kumara
Copy link
Author

@dibyom dibyom added the kind/documentation Categorizes issue or PR as related to documentation. label Sep 6, 2023
@dibyom dibyom self-assigned this Sep 6, 2023
@Xieql
Copy link

Xieql commented Nov 17, 2023

I recently followed the steps provided in the Getting Started guide of the Tekton Triggers repository at
https://github.com/tektoncd/triggers/tree/main/docs/getting-started and encountered the same issue discussed in this thread.

It appears to be linked to the configuration in the pipeline.yaml file:

- name: send-cloud-event
taskRef:
resolver: hub
params:
- name: name
value: cloudevent
- name: version
value: 0.1
params:
- name: sink
# URL of the Service we create below
value: http://event-display.getting-started.svc.cluster.local
- name: eventID
value: $(context.taskRun.name)
. An update to this part of the documentation might be beneficial.

As @hemantha-kumara mentioned, adding essential variables could resolve the issue. This update could prevent similar issues for new users and streamline the initial setup process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. kind/documentation Categorizes issue or PR as related to documentation.
Projects
None yet
Development

No branches or pull requests

3 participants