target

package
v0.0.0-...-386b7fa Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VpaTargetSelectorFetcher

type VpaTargetSelectorFetcher interface {
	// Fetch returns a labelSelector used to gather Pods controlled by the given VPA.
	// If error is nil, the returned labelSelector is not nil.
	Fetch(vpa *vpa_types.VerticalPodAutoscaler) (labels.Selector, error)
}

VpaTargetSelectorFetcher gets a labelSelector used to gather Pods controlled by the given VPA.

func NewBeta1TargetSelectorFetcher

func NewBeta1TargetSelectorFetcher(config *rest.Config) VpaTargetSelectorFetcher

NewBeta1TargetSelectorFetcher returns new instance of VpaTargetSelectorFetcher that uses selector from deprecated v1beta1

func NewCompositeTargetSelectorFetcher

func NewCompositeTargetSelectorFetcher(primary, backup VpaTargetSelectorFetcher) VpaTargetSelectorFetcher

NewCompositeTargetSelectorFetcher returns a new VpaTargetSelectorFetcher that uses primary VpaTargetSelectorFetcher by default and when it fails tries backup VpaTargetSelectorFetcher.

func NewVpaTargetSelectorFetcher

func NewVpaTargetSelectorFetcher(config *rest.Config, kubeClient kube_client.Interface, factory informers.SharedInformerFactory) VpaTargetSelectorFetcher

NewVpaTargetSelectorFetcher returns new instance of VpaTargetSelectorFetcher

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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