hpa

package
v1.9.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2017 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// FederatedAnnotationOnHpaTargetObj as key, is used by hpa controller to
	// set selected cluster name list as annotation on the target object.
	FederatedAnnotationOnHpaTargetObj = "federation.kubernetes.io/hpa-target-cluster-list"
)

Variables

This section is empty.

Functions

func SetHpaTargetClusterList

func SetHpaTargetClusterList(obj runtime.Object, clusterNames ClusterNames) runtime.Object

SetHpaTargetClusterList is used to set the list of clusters on the target object annotations.

Types

type ClusterNames

type ClusterNames struct {
	Names []string
}

ClusterNames stores the list of clusters represented by names as appearing on federation cluster objects. This is set by federation hpa and used by target objects federation controller to restrict that target object to only these clusters.

func GetHpaTargetClusterList

func GetHpaTargetClusterList(obj runtime.Object) (*ClusterNames, error)

GetHpaTargetClusterList is used to get the list of clusters from the target object annotations.

func (*ClusterNames) String

func (cn *ClusterNames) String() string

Jump to

Keyboard shortcuts

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