This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Description
- For his sample configuration, fix names of secrets, and also add missing "mediations:"
apiVersion: events.kabanero.io/v1alpha1
kind: EventMediator
metadata:
name: webhook
spec:
createListener: true
createRoute: true
repositories:
- github:
secret: my-githubsecret
webhookSecret: my-webhooksecret
- name: webhook
Change to:
apiVersion: events.kabanero.io/v1alpha1
kind: EventMediator
metadata:
name: webhook
spec:
createListener: true
createRoute: true
repositories:
- github:
secret: my-github-secret
webhookSecret: my-webhook-secret
mediations:
- name: webhook
-
Add to the "Configure the webhook on your source repository"
Note:
- For Payload URL, use the route for your webhook mediator.
- For Content type, select application/json.
- For Secret, Use the value of the secretToken configured earlier for your secret my-webhook-secret.
- Select Disable SSL verification, as the default route uses self signed certificates that can not be verified by github.
- Select send me everything when selecting which events are to trigger the webhook.
-
Update the kabanero custom resource to 0.9.1 version, if not already updated:
apiVersion: kabanero.io/v1alpha2
kind: Kabanero
metadata:
name: kabanero
spec:
version: "0.9.1"
stacks:
repositories:
- name: central
https:
url: https://github.com/kabanero-io/collections/releases/download/0.9.0/kabanero-index.yaml
pipelines:
- id: default
sha256: caf603b69095ec3d128f1c2fa964a2964509854e306fb3c5add8addc8f7f7b71
https:
url: https://github.com/kabanero-io/kabanero-pipelines/releases/download/0.9.1/kabanero-events-pipelines.tar.gz