kafkachannel

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Example
images := map[string]string{}

cfg := map[string]interface{}{
	"name":      "foo",
	"namespace": "bar",
	"version":   "v1beta1",
}
WithNumPartitions("10")(cfg)
WithReplicationFactor("3")(cfg)
WithRetentionDuration("P1D")

files, err := manifest.ExecuteYAML(yaml, images, cfg)
if err != nil {
	panic(err)
}

manifest.OutputYAML(os.Stdout, files)
Output:

apiVersion: messaging.knative.dev/v1beta1
kind: KafkaChannel
metadata:
  name: foo
  namespace: bar
spec:
  numPartitions: 10
  replicationFactor: 3

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GVR

func Install

func Install(name string, opts ...manifest.CfgFn) feature.StepFn

Install will create a KafkaChannel resource, using the latest version, augmented with the config fn options.

func IsReady

func IsReady(name string, timings ...time.Duration) feature.StepFn

IsReady tests to see if a KafkaChannel becomes ready within the time given.

func WithNumPartitions

func WithNumPartitions(numPartitions string) manifest.CfgFn

WithNumPartitions adds the numPartitions config to a KafkaChannel spec.

func WithReplicationFactor

func WithReplicationFactor(replicationFactor string) manifest.CfgFn

WithReplicationFactor adds the replicationFactor config to a KafkaChannel spec.

func WithRetentionDuration added in v0.26.0

func WithRetentionDuration(retentionDuration string) manifest.CfgFn

WithRetentionDuration adds the retentionDuration config to a KafkaChannel spec.

func WithVersion

func WithVersion(version string) manifest.CfgFn

WithVersion overrides the default API version

Types

This section is empty.

Jump to

Keyboard shortcuts

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