Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Control ¶
type Control interface { // common IsInitializing() bool SetRevisionTemplate(revisionSpec map[string]interface{}, template map[string]interface{}) ApplyRevisionPatch(patched []byte) (*appsv1alpha1.CloneSet, error) // scale IsReadyToScale() bool NewVersionedPods(currentCS, updateCS *appsv1alpha1.CloneSet, currentRevision, updateRevision string, expectedCreations, expectedCurrentCreations int, availableIDs []string, ) ([]*v1.Pod, error) // update IsPodUpdatePaused(pod *v1.Pod) bool IsPodUpdateReady(pod *v1.Pod, minReadySeconds int32) bool GetPodsSortFunc(pods []*v1.Pod, waitUpdateIndexes []int) func(i, j int) bool GetUpdateOptions() *inplaceupdate.UpdateOptions // validation ValidateCloneSetUpdate(oldCS, newCS *appsv1alpha1.CloneSet) error }
func New ¶
func New(cs *appsv1alpha1.CloneSet) Control
Click to show internal directories.
Click to hide internal directories.