Documentation
¶
Index ¶
- func DeleteHPA(c *kubernetes.Clientset, name, namespace string) error
- func GetHPA(indexer *client.CacheFactory, name, namespace string) (hpa *autoscaling.HorizontalPodAutoscaler, err error)
- func GetHPAList(indexer *client.CacheFactory, namespace string, label map[string]string) ([]*autoscaling.HorizontalPodAutoscaler, error)
- func GetHPAPage(indexer *client.CacheFactory, namespace string, q *backendCommon.QueryParam) (page *backendCommon.Page, err error)
- type HPA
- type HPACell
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 CreateOrUpdateHPA ¶
func CreateOrUpdateHPA(c *kubernetes.Clientset, hpa *autoscaling.HorizontalPodAutoscaler) (*HPA, error)
func GetHPADetail ¶
func GetHPADetail(indexer *client.CacheFactory, name, namespace string) (*HPA, error)
type HPACell ¶
type HPACell HPA
func (HPACell) GetProperty ¶
func (self HPACell) GetProperty(name dataselector.PropertyName) dataselector.ComparableValue
Click to show internal directories.
Click to hide internal directories.