sidecar

package
v0.0.0-...-cb3e436 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IMAGE_KEY            = "K_SOURCE_ADAPTER_IMAGE"
	SIDECAR_DEFAULT_PORT = 38080
	LABEL_NAME           = "eventing.knative.dev/inject"
	ADAPTER_KEY          = "cloudevents-adapter"
	FILTER_KEY           = "cloudevents-filter"

	CE_LABEL_PREFIX  = "cloudevents.io/"
	EVENT_SOURCE_KEY = "source"
	EVENT_TYPE_KEY   = "type"

	SIDECAR_NAME = "knative-sidecar"

	PORT_MAX = 1<<16 - 1
)

Variables

This section is empty.

Functions

func Inject

func Inject(pod *corev1.Pod)

Inject inspects and rewrites the Pod to have a Knative Adapter/Filter sidecar.

func ShouldInjectAdapter

func ShouldInjectAdapter(pod *corev1.Pod) bool

ShouldInjectAdapter returns true if the adapter sidecar should be injected and has not already been injected.

Types

type SidecarArgs

type SidecarArgs struct {
	// Always required.
	SinkURIVar, OutputFormatVar *corev1.EnvVar
	Image                       string
	Port                        int32

	// Required for the adapter.
	EventType, EventSource string

	// Optional for adapter.
	AddExtensions map[string]string

	// Optional for filter.
	FilterExtensions map[string]string
}

Jump to

Keyboard shortcuts

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