hpa

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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