Created
July 28, 2020 15:57
-
-
Save khrm/91516bc29cb3e2e5f9e8a6caaffded07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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