resources

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvName          = "NAME"
	EnvNamespace     = "NAMESPACE"
	EnvMetricsDomain = "METRICS_DOMAIN"

	DefaultMetricsDomain = "triggermesh.io/flow"
)

Common environment variables propagated to adapters.

View Source
const (
	// name of the application
	AppNameLabel = "app.kubernetes.io/name"
	// unique name identifying the instance of an application
	AppInstanceLabel = "app.kubernetes.io/instance"
	// component within the architecture
	AppComponentLabel = "app.kubernetes.io/component"
	// name of a higher level application this one is part of
	AppPartOfLabel = "app.kubernetes.io/part-of"
	// tool being used to manage the operation of an application
	AppManagedByLabel = "app.kubernetes.io/managed-by"
)

Kubernetes recommended labels https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/

View Source
const (
	PartOf            = "triggermesh-flow"
	ManagedController = "triggermesh-controller"
	AdapterComponent  = "adapter"
)

Common label values

Variables

This section is empty.

Functions

func KsvcLabelVisibilityClusterLocal

func KsvcLabelVisibilityClusterLocal(ksvc *servingv1.Service) *servingv1.Service

KsvcLabelVisibilityClusterLocal sets label to avoid exposing the service externally.

func MakeKService

func MakeKService(namespace, name, image string, opts ...KsvcOpts) *servingv1.Service

MakeKService generates a Knative service.

Types

type KsvcOpts

type KsvcOpts func(*servingv1.Service) *servingv1.Service

KsvcOpts configures Knative service.

func EnvVar

func EnvVar(name, val string) KsvcOpts

EnvVar sets the value of a Container's environment variable.

func KsvcLabels

func KsvcLabels(ls labels.Set) KsvcOpts

KsvcLabels sets labels.

func KsvcOwner

func KsvcOwner(owner kmeta.OwnerRefable) KsvcOpts

KsvcOwner sets owner ref.

func KsvcPodEnvVars

func KsvcPodEnvVars(env []corev1.EnvVar) KsvcOpts

KsvcPodEnvVars sets pod's first container env vars.

func KsvcPodLabels

func KsvcPodLabels(ls labels.Set) KsvcOpts

KsvcPodLabels sets pod labels.

func KsvcServiceAccount

func KsvcServiceAccount(serviceaccount string) KsvcOpts

KsvcServiceAccount sets the ServiceAccount.

Jump to

Keyboard shortcuts

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