Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
kind: Broker
spec:
template:
metadata:
labels: <label map>
ingress: <Destination>
rules:
attributes: <TypeMeta>
apiVersion: eventing.knative.dev/v1alpha1
kind: AttributesRule
filters:
attributes: <TypeMeta>
apiVersion: eventing.knative.dev/v1alpha1
kind: AttributesFilter
wildcard: <TypeMeta>
apiVersion: eventing.knative.dev/v1alpha1
kind: WildcardFilter
cel: <TypeMeta>
apiVersion: eventing.knative.dev/v1alpha1
kind: CELFilter
status:
address:
url: <resolved ingress URL>
kind: Trigger
spec:
filter:
attributes:
type: foo.bar
subscriber: <Destination>
# This gets a rule added by webhook:
kind: Trigger
spec:
rule:
attributes:
type: foo.bar
filter:
attributes:
type: foo.bar
subscriber: <Destination>
kind: Trigger
spec:
rule:
attributes:
type: foo.bar
filter:
cel:
expression: "some cel expr"
subscriber: <Destination>
# Trigger controller creates Rule and Filter objects for each, using Broker's
# metadata template
# Filters are request/response callables
# Rules are created with the rule parameters, the filter uri, and the subscriber
# uri (Trigger controller resolves these)
# Other objects implement Rule and Filter in cooperation with the Broker's ingress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment