resources

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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 (
	AdapterComponent = "adapter"
)

Common label values

Variables

This section is empty.

Functions

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 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.

Jump to

Keyboard shortcuts

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