Documentation ¶
Index ¶
Constants ¶
View Source
const (
// LengthOfInstanceID is the length of instance-id
LengthOfInstanceID = 5
)
Variables ¶
This section is empty.
Functions ¶
func IsPodAvailable ¶ added in v1.2.0
func SortUpdateIndexes ¶
func SortUpdateIndexes(coreControl clonesetcore.Control, strategy appsv1alpha1.CloneSetUpdateStrategy, pods []*v1.Pod, waitUpdateIndexes []int) []int
SortUpdateIndexes sorts the given oldRevisionIndexes of Pods to update according to the CloneSet strategy.
Types ¶
type Interface ¶
type Interface interface { Scale( currentCS, updateCS *appsv1alpha1.CloneSet, currentRevision, updateRevision string, pods []*v1.Pod, pvcs []*v1.PersistentVolumeClaim, ) (bool, error) Update(cs *appsv1alpha1.CloneSet, currentRevision, updateRevision *apps.ControllerRevision, revisions []*apps.ControllerRevision, pods []*v1.Pod, pvcs []*v1.PersistentVolumeClaim, ) error }
Interface for managing pods scaleing and updating.
Click to show internal directories.
Click to hide internal directories.