Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
Deployment represents behaviors of a Kubernetes Deployment.
func (*Deployment) CanSelectPodsToScaleDown ¶
func (*Deployment) CanSelectPodsToScaleDown(context.Context) bool
func (*Deployment) SelectPodsToScaleDown ¶
type Interface ¶
type Interface interface { // Interface provide the default pod scale down sort method of this workload. podsorter.Interface // CanSelectPodsToScaleDown means if this workload support scaling down specific pods. CanSelectPodsToScaleDown(context.Context) bool // SelectPodsToScaleDown select specific pods that would be scaled down when declining the replica of this workload. SelectPodsToScaleDown(context.Context, []*corev1.Pod) error }
Interface represent various behaviors of a specific Kubernetes workload.
type ReplicaSet ¶
ReplicaSet represents behaviors of a Kubernetes ReplicaSet.
func (*ReplicaSet) CanSelectPodsToScaleDown ¶
func (*ReplicaSet) CanSelectPodsToScaleDown(context.Context) bool
func (*ReplicaSet) SelectPodsToScaleDown ¶
type StatefulSet ¶
type StatefulSet struct{}
StatefulSet represents behaviors of a Kubernetes StatefulSet.
func (*StatefulSet) CanSelectPodsToScaleDown ¶
func (*StatefulSet) CanSelectPodsToScaleDown(context.Context) bool
func (*StatefulSet) SelectPodsToScaleDown ¶
Click to show internal directories.
Click to hide internal directories.