Skip to content

Instantly share code, notes, and snippets.

@khrm
Created July 28, 2020 15:58
Show Gist options
  • Save khrm/84d378f19ae156743fcef426c9e39842 to your computer and use it in GitHub Desktop.
Save khrm/84d378f19ae156743fcef426c9e39842 to your computer and use it in GitHub Desktop.
apiVersion: v1alpha1
kind: EventListener
metadata:
name: my-el
spec:
serviceAccountName: "blah"
selector:
matchLabels:
handler: operator
---
apiVersion: v1alpha1
kind: Trigger
metadata:
name: my-repo-trigger
labels:
handler: operator
spec:
serviceAccountName: "blah"
interceptors:
cel:
filter: "$(header.eventType == "push")"
bindings:
- name: key
value: "$(body.commit_id)"
template: "ref-to-my-template"
status:
address:
url: "el-my-svc.cluster.local" # could also be an IP address?
conditions:
status: True
message: "Bound to EventListener my-el"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment