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

Assess the move to Triggers 0.2 (webhooks) #431

Closed
a-roberts opened this issue Jan 20, 2020 · 4 comments
Closed

Assess the move to Triggers 0.2 (webhooks) #431

a-roberts opened this issue Jan 20, 2020 · 4 comments
Assignees

Comments

@a-roberts
Copy link
Member

As an end user I expect to be able to use the Tekton Dashboard with Triggers 0.2. When using the webhooks extension there's a fundamental flaw with our architecture too - a user can't create more than eight webhooks or they'll get an admission webhook timeout error (more details at tektoncd/triggers#356)

Related dashboard issue tektoncd/dashboard#918

@a-roberts
Copy link
Member Author

a-roberts commented Jan 20, 2020

Can't create webhooks

Error:

Failed to create webhook, error returned was : error creating webhook due to error creating eventlistener. Error was: Internal error occurred: admission webhook "triggers-webhook.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: unknown field "header"

https://github.com/tektoncd/triggers/blob/master/pkg/apis/triggers/v1alpha1/event_listener_types.go#L96 perhaps

@a-roberts
Copy link
Member Author

I pinged @ncskier about this, Brandon mentioned

We do use params, but now in Triggers 0.2 they don't exist - we have to create a separate TriggerBinding resource for them. There should be an issue floating around somewhere for embedding the TriggerBinding spec in the EventListener, but it hasn’t been implemented yet (this is missing in the Triggers release notes atm)

@ncskier
Copy link
Member

ncskier commented Jan 21, 2020

Another change to note (discussed in the Triggers call today) is that the gjson syntax will no longer be supported; instead we must use JSONPath syntax:

gjson syntax for TriggerBindings was removed in favor of JSONPath.

This is not a problem for the Webhooks Extension itself, but anyone using the Webhooks Extension will have to update their TriggerBindings to use the JSONPath syntax.

@a-roberts
Copy link
Member Author

Assessment done for what we can do so far, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants