Skip to content

Event Discovery: Add Variables to EventType V1Beta3 spec #7729

Open
@Cali0707

Description

@Cali0707

Problem
In the new v1beta3 api for eventtypes, we are allowing users to place "variables" into template strings for the various eventtype attributes. It would be good to allow users to give more information about what values are allowed for those variables.

To accomplish this, we can add a variables section to the spec like this:

apiVersion: eventing.knative.dev/v1beta3
kind: EventType
spec:
  reference:
    ...
  attributes:
    - name: "type"
      value: "event.{requestStatus}.foo"
      required: true
    ...
  variables:
    - name: "requestStatus"
      pattern: "req_est.%"
      example: "request.failed"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions