resources

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateReceiveAdapterName added in v0.16.0

func CreateReceiveAdapterName(name string, uid types.UID) string

func Labels

func Labels(name string) map[string]string

Labels are the labels attached to all resources based on a PingSource.

func MakeMTReceiveAdapter added in v0.15.0

func MakeMTReceiveAdapter(args MTArgs) *v1.Deployment

MakeMTReceiveAdapter generates the mtping deployment for pingsources

func MakeReceiveAdapter

func MakeReceiveAdapter(args *Args) *v1.Deployment

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

func MakeRoleBinding added in v0.16.0

func MakeRoleBinding(source *v1alpha2.PingSource, name string, clusterRoleName string) *rbacv1.RoleBinding

MakeRoleBinding creates a RoleBinding object for the single-tenant receive adapter service account 'sa' in the Namespace 'ns'.

Types

type Args

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

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

type MTArgs added in v0.15.0

type MTArgs struct {
	ServiceAccountName string
	MTAdapterName      string
	Image              string
	MetricsConfig      string
	LoggingConfig      string
	LeConfig           string
	NoShutdownAfter    int
}

Jump to

Keyboard shortcuts

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