federatedhpa

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FederatedHPAControllerName         = "federatedhpa-controller"
	PrefixedFederatedHPAControllerName = common.DefaultPrefix + FederatedHPAControllerName

	EventReasonCentralizedHPANotWork = "CentralizedHPANotWork"
	EventReasonDistributedHPANotWork = "DistributedHPANotWork"

	FederatedHPAMode            = common.DefaultPrefix + "hpa-mode"
	FederatedHPAModeCentralized = "centralized"
	FederatedHPAModeDistributed = "distributed"
	FederatedHPAModeDefault     = ""
)
View Source
const (
	PropagationPolicyKind        = "PropagationPolicy"
	ClusterPropagationPolicyKind = "ClusterPropagationPolicy"

	FedHPANotWorkReason = common.DefaultPrefix + "fed-hpa-not-work-reason"

	EventReasonUpdateHPASourceObject = "UpdateHPASourceObject"
	EventReasonUpdateHPAFedObject    = "UpdateHPAFedObject"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FederatedHPAController

type FederatedHPAController struct {
	// contains filtered or unexported fields
}

FederatedHPAController reconciles an HPA object

func NewFederatedHPAController

func NewFederatedHPAController(
	kubeClient kubernetes.Interface,
	fedClient fedclient.Interface,
	dynamicClient dynamic.Interface,
	informerManager informermanager.InformerManager,
	fedObjectInformer fedcorev1a1informers.FederatedObjectInformer,
	propagationPolicyInformer fedcorev1a1informers.PropagationPolicyInformer,
	clusterPropagationPolicyInformer fedcorev1a1informers.ClusterPropagationPolicyInformer,
	metrics stats.Metrics,
	logger klog.Logger,
	workerCount int,
) (*FederatedHPAController, error)

func (*FederatedHPAController) HasSynced

func (f *FederatedHPAController) HasSynced() bool

func (*FederatedHPAController) IsControllerReady

func (f *FederatedHPAController) IsControllerReady() bool

func (*FederatedHPAController) Run

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

func (Resource) QualifiedName

func (r Resource) QualifiedName() common.QualifiedName

Jump to

Keyboard shortcuts

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