kafka-provisioner

module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2020 License: Apache-2.0

README

kafka-provisioner

The Kafka Provisioner component is responsible for creating topics in a Kafka cluster when asked to do so by the riff system.

For a given riff stream "foo" existing in namespace "my-ns", a PUT request will be made to this component at /my-ns/foo. It will react by creating a topic named my-ns_foo. Note that the underscore is an allowed character in Kafka topic names but is disallowed is kubernetes resource names. This avoids collisions between ns=foo-bar:stream=quizz and ns=foo:stream=bar-quizz

Upon successful creation (or lookup of pre-existing) of a topic, it will return its liiklus coordinates in the following json form:

{
 "gateway": "<host>:<port>",
 "topic": "<created-topic-name>"
}

Configuration

The provisioner should run with the following environment variables configured:

  • BROKER: the address of a Kafka broker to connect to, in the form host:port
  • GATEWAY: the address of a liiklus gRPC endpoint. Will be used as part of the returned coordinates (see above).

Directories

Path Synopsis
cmd
pkg
provisioner/kafka/kafkafakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL