resources

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 10 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 are the labels attached to all resources based on a PingSource.

func MakeJobRunner

func MakeJobRunner(args JobRunnerArgs) *v1.Deployment

MakeJobRunner generates the jobrunner deployment for pingsource

func MakeJobRunnerService

func MakeJobRunnerService(name, namespace string) *corev1.Service

func MakeReceiveAdapter

func MakeReceiveAdapter(args *Args) *v1.Deployment

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

Types

type Args

type Args struct {
	Image         string
	Source        *v1alpha1.PingSource
	Labels        map[string]string
	SinkURI       *apis.URL
	MetricsConfig string
	LoggingConfig string
}

ReceiveAdapterArgs are the arguments needed to create a Cron Job Source Receive Adapter. Every field is required.

type JobRunnerArgs

type JobRunnerArgs struct {
	ServiceAccountName string
	JobRunnerName      string
	JobRunnerNamespace string
	Image              string
}

Jump to

Keyboard shortcuts

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