resources

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDecider

func MakeDecider(ctx context.Context, pa *v1alpha1.PodAutoscaler, config *autoscaler.Config, svc string) *autoscaler.Decider

MakeDecider constructs a Decider resource from a PodAutoscaler taking into account the PA's ContainerConcurrency and the relevant autoscaling annotation.

func MakeMetric

func MakeMetric(ctx context.Context, pa *v1alpha1.PodAutoscaler, config *autoscaler.Config) *autoscaler.Metric

MakeMetric constructs a Metric resource from a PodAutoscaler

func MakeMetricsService

func MakeMetricsService(pa *pav1alpha1.PodAutoscaler, selector map[string]string) *corev1.Service

MakeMetricsService constructs a service that can be scraped for metrics.

Types

This section is empty.

Directories

Path Synopsis
Package names contains name generating functions for the KPA.
Package names contains name generating functions for the KPA.

Jump to

Keyboard shortcuts

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