resources

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Labels

func Labels(name string) map[string]string

Labels returns map which holds the label of "knative-eventing-source" and "knative-eventing-source-name".

func MakeService

func MakeService(args *ServiceArgs) *v1.Service

MakeService generates, but does not create, a Service for the given DockerHubSource.

Types

type ServiceArgs

type ServiceArgs struct {
	ReceiveAdapterImage string
	Source              *sourcesv1alpha1.DockerHubSource
	EventSource         string
	AdditionalEnvs      []corev1.EnvVar
	Context             context.Context
}

ServiceArgs contains what the kservice needs.

func (*ServiceArgs) GetEnv

func (args *ServiceArgs) GetEnv() []corev1.EnvVar

GetEnv return EnvVar used by the ksvc.

Jump to

Keyboard shortcuts

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