Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Updates to Integrating the Events Operator Guide #78

Open
mchenggit opened this issue Jun 25, 2020 · 0 comments
Open

Updates to Integrating the Events Operator Guide #78

mchenggit opened this issue Jun 25, 2020 · 0 comments

Comments

@mchenggit
Copy link

  1. 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

  1. 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.
  2. 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

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

No branches or pull requests

1 participant