target

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DaemonSet             string = "DaemonSet"
	Deployment            string = "Deployment"
	StatefulSet           string = "StatefulSet"
	ReplicaSet            string = "ReplicaSet"
	ReplicationController string = "ReplicationController"
	CronJob               string = "CronJob"
	Job                   string = "Job"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TargetInfoFetcher

type TargetInfoFetcher interface {
	// FetchSelector returns labelSelector, used to gather Pods controlled by the given targetRef.
	FetchSelector(targetRef *corev1.ObjectReference) (labels.Selector, error)
	// FetchReplicas return desired replicas, current replicas
	FetchReplicas(targetRef *corev1.ObjectReference) (int32, int32, error)
}

func NewTargetInfoFetcher

func NewTargetInfoFetcher(restMapper meta.RESTMapper, scaleClient scale.ScalesGetter, kubeClient clientset.Interface) TargetInfoFetcher

NewTargetInfoFetcher returns new instance of TargetInfoFetcher

Jump to

Keyboard shortcuts

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