This repository contains the Direktiv source for Knative. It forwards events created in Direktiv to Knative. These events can be either coming from an explicit GenerateEvent state or actions within the system, e.g. creating namespaces.
The source is implemented as ContainerSource and requires one argument to connect to the Direktiv instance via GRPC. Direktiv will then stream events to this source.
apiVersion: sources.knative.dev/v1
kind: ContainerSource
metadata:
name: direktiv-source
spec:
template:
spec:
containers:
- image: direktiv/direktiv-source
name: direktiv-source
args:
- --direktiv=direktiv-flow.default:3333
sink:
ref:
apiVersion: eventing.knative.dev/v1
kind: Broker
name: default
It is required to enable eventing during the Helm installation of Direktiv:
eventing:
enabled: true
To install an in-memory channel and MT broker for testing the script scripts/install-eventing.sh in the Direktiv Github repository can be used.
For a full Direktiv, Knative, Kafka example, click here.