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:
kind: PingSource
metadata:
name: trigger-job-every-minute
spec:
sink:
ref:
apiVersion: mygroup/v1
kind: JobDefinition