service

package
v0.4.0-rc4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GroupName = "autoscaling.knative.dev"

	// MinScaleAnnotationKey is the annotation to specify the minimum number of Pods
	// the PodAutoscaler should provision. For example,
	//   autoscaling.knative.dev/minScale: "1"
	MinScaleAnnotationKey = GroupName + "/minScale"
	// MaxScaleAnnotationKey is the annotation to specify the maximum number of Pods
	// the PodAutoscaler should provision. For example,
	//   autoscaling.knative.dev/maxScale: "10"
	MaxScaleAnnotationKey = GroupName + "/maxScale"

	ConfigurationKey = "serving.knative.dev/configuration"

	ServiceKey = "serving.knative.dev/service"

	RevisionKey = "serving.knative.dev/revision"

	ScrapeKey = "metric-scrape"

	ReferingLabel = "autoscaling.knative.dev/class"

	ContainerPortKey = "container-port"

	AppKey = "app"

	VersionKey = "version"
)

Variables

This section is empty.

Functions

func AutoscaleEnabled added in v0.2.0

func AutoscaleEnabled(service *v1.Service) bool

func Register

func Register(ctx context.Context, rContext *types.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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