resources

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultSecretSelector

func DefaultSecretSelector() *corev1.SecretKeySelector

DefaultSecretSelector is the default secret selector used to load the creds for the publisher to auth with Google Cloud.

func GeneratePublisherName

func GeneratePublisherName(topic *v1.Topic) string

func GetLabelSelector

func GetLabelSelector(controller, source string) labels.Selector

func GetLabels

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

func MakePublisher

func MakePublisher(args *PublisherArgs) *servingv1.Service

MakePublisher generates (but does not insert into K8s) the Invoker Deployment for Channels.

Types

type PublisherArgs

type PublisherArgs struct {
	Image         string
	Topic         *v1.Topic
	Labels        map[string]string
	TracingConfig string
	// There are three types: `secret`, `workload-identity-gsa` and `workload-identity`.
	AuthType authcheck.AuthType
}

PublisherArgs are the arguments needed to create a Topic publisher. Every field is required.

Jump to

Keyboard shortcuts

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