Knative reference mapping

    Stage: Alpha, disabled by default

    Tracking issue: #5593

    When enabled, this feature allows you to provide mappings from a to a templated URI.

    Note

    For example, you can directly reference non-addressable resources anywhere that Knative Eventing accepts a reference, such as for a PingSource sink, or a Trigger subscriber.

    Mappings are defined by a cluster administrator in the config-reference-mapping ConfigMap. The following example maps JobDefinition to a Job runner service:

    • Name: The name of the referenced object
    • Namespace: The namespace of the referenced object
    • UID: The UID of the referenced object
    • SystemNamespace: The namespace of where Knative Eventing is installed

    Given the above mapping, the following example shows how you can directly reference JobDefinition objects in a PingSource:

    1. kind: PingSource
    2. metadata:
    3. name: trigger-job-every-minute
    4. spec:
    5. sink:
    6. ref:
    7. apiVersion: mygroup/v1
    8. kind: JobDefinition