Knative Eventing Sugar Controller

    The following command installs the Eventing Sugar Controller:

    Automatic Broker Creation

    One way to create a Broker is to manually apply a resource to a cluster using the default settings:

    There might be cases where automated Broker creation is desirable, such as on namespace creation, or on Trigger creation. The Sugar controller enables those use-cases:

    • When a Namespace is labeled with , the sugar controller will create a default Broker named “default” in that namespace.

    Creating a “default” Broker when creating a Namespace:

    To automatically create a Broker after a namespace exists, label the Namespace:

    If the Broker named “default” already exists in the Namespace, the Sugar Controller will do nothing.

    Trigger Examples

    This will make a Broker called “sugar” in the Namespace “hello”, and attempt to send events to the “event-display” service.

    If the Broker of the given name already exists in the Namespace, the Sugar Controller will do nothing.