resources

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSubscriptionName

func GenerateSubscriptionName(src *v1alpha1.PullSubscription) string

func GetLabelSelector

func GetLabelSelector(controller, source string) labels.Selector

func GetLabels

func GetLabels(controller, source string) map[string]string

func MakeReceiveAdapter

func MakeReceiveAdapter(ctx context.Context, args *ReceiveAdapterArgs) *v1.Deployment

MakeReceiveAdapter generates (but does not insert into K8s) the Receive Adapter Deployment for PullSubscriptions.

Types

type ReceiveAdapterArgs

type ReceiveAdapterArgs struct {
	Image          string
	Source         *v1alpha1.PullSubscription
	Labels         map[string]string
	SubscriptionID string
	SinkURI        *apis.URL
	TransformerURI *apis.URL
	MetricsConfig  string
	LoggingConfig  string
	TracingConfig  string
}

ReceiveAdapterArgs are the arguments needed to create a PullSubscription Receive Adapter. Every field is required.

Jump to

Keyboard shortcuts

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