apiVersion: dapr.io/v2alpha1
kind: Subscription
metadata:
  name: mysubscriptions
  namespace: default
spec:
  pubsubname: pubsub
  topic: inventory
  routes:
    rules:
      - match: "event.type == 'widget'"
        path: widgets
      - match: "event.type == 'gadget'"
        path: gadgets
    default: products