target

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MpaTargetSelectorFetcher

type MpaTargetSelectorFetcher interface {
	// Fetch returns a labelSelector used to gather Pods controlled by the given MPA.
	// If error is nil, the returned labelSelector is not nil.
	Fetch(mpa *mpa_types.MultidimPodAutoscaler) (labels.Selector, error)

	// For updating the Deployments.
	GetRESTMappings(groupKind schema.GroupKind) ([]*apimeta.RESTMapping, error)
	Scales(namespace string) scale.ScaleInterface
}

MpaTargetSelectorFetcher gets a labelSelector used to gather Pods controlled by the given MPA.

func NewMpaTargetSelectorFetcher

func NewMpaTargetSelectorFetcher(config *rest.Config, kubeClient kube_client.Interface, factory informers.SharedInformerFactory) MpaTargetSelectorFetcher

NewMpaTargetSelectorFetcher returns new instance of MpaTargetSelectorFetcher

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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