resources

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package resources holds simple functions for synthesizing child resources from a Revision resource and any relevant Revision controller configuration.

Index

Constants

View Source
const (
	// QueueContainerName is the name of the queue proxy side car
	QueueContainerName = "queue-proxy"

	// IstioOutboundIPRangeAnnotation defines the outbound ip ranges istio allows.
	// TODO(mattmoor): Make this private once we remove revision_test.go
	IstioOutboundIPRangeAnnotation = "traffic.sidecar.istio.io/includeOutboundIPRanges"

	// AppLabelKey is the label defining the application's name.
	AppLabelKey = "app"

	// ProgressDeadlineSeconds is the time in seconds we wait for the deployment to
	// be ready before considering it failed.
	ProgressDeadlineSeconds = int32(120)
)

Variables

This section is empty.

Functions

func MakeDeployment

func MakeDeployment(rev *v1alpha1.Revision,
	loggingConfig *logging.Config, tracingConfig *tracingconfig.Config, networkConfig *network.Config, observabilityConfig *metrics.ObservabilityConfig,
	deploymentConfig *deployment.Config) (*appsv1.Deployment, error)

MakeDeployment constructs a K8s Deployment resource from a revision.

func MakeImageCache

func MakeImageCache(rev *v1alpha1.Revision) *caching.Image

MakeImageCache makes an caching.Image resources from a revision.

func MakePA added in v0.8.0

MakePA makes a Knative Pod Autoscaler resource from a revision.

Types

This section is empty.

Directories

Path Synopsis
Package names holds simple functions for synthesizing resource names.
Package names holds simple functions for synthesizing resource names.

Jump to

Keyboard shortcuts

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