hpa

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteHPA

func DeleteHPA(c *kubernetes.Clientset, name, namespace string) error

func GetHPA

func GetHPA(indexer *client.CacheFactory, name, namespace string) (hpa *autoscaling.HorizontalPodAutoscaler, err error)

func GetHPAList

func GetHPAList(indexer *client.CacheFactory, namespace string, label map[string]string) ([]*autoscaling.HorizontalPodAutoscaler, error)

func GetHPAPage

func GetHPAPage(indexer *client.CacheFactory, namespace string, q *backendCommon.QueryParam) (page *backendCommon.Page, err error)

Types

type HPA

type HPA struct {
	common.ObjectMeta `json:"objectMeta"`
	common.TypeMeta   `json:"typeMeta"`
	//ScaleTargetRef                  ScaleTargetRef `json:"scaleTargetRef"`
	MinReplicas                     *int32 `json:"minReplicas"`
	MaxReplicas                     int32  `json:"maxReplicas"`
	CurrentCPUUtilizationPercentage *int32 `json:"currentCPUUtilizationPercentage"`
	TargetCPUUtilizationPercentage  *int32 `json:"targetCPUUtilizationPercentage"`
}

func GetHPADetail

func GetHPADetail(indexer *client.CacheFactory, name, namespace string) (*HPA, error)

type HPACell

type HPACell HPA

func (HPACell) GetProperty

Jump to

Keyboard shortcuts

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