resources

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateK8sName added in v0.16.0

func GenerateK8sName(ps *v1beta1.PullSubscription) string

GenerateK8sName generates a k8s name based on PullSubscription information.

It uses the object labels to see whether it's from a source, channel, or ps to constructs a k8s compliant name.

func GenerateReceiveAdapterName added in v0.16.0

func GenerateReceiveAdapterName(ps *v1beta1.PullSubscription) string

GenerateReceiveAdapterName generates the name of the receive adapter to be used for this PullSubscription.

func GenerateSubscriptionName

func GenerateSubscriptionName(ps *v1beta1.PullSubscription) string

GenerateSubscriptionName generates the name for the Pub/Sub subscription to be used for this PullSubscription.

It uses the object labels to see whether it's from a source, channel, or ps to construct the name.

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
	PullSubscription *v1beta1.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