Versions in this module Expand all Collapse all v2 v2.0.0 Oct 7, 2019 Changes in this version + const DefaultMachineDeploymentUniqueLabelKey + const DesiredReplicasAnnotation + const FailedMSCreateReason + const FoundNewMSReason + const MaxReplicasAnnotation + const MinimumReplicasAvailable + const MinimumReplicasUnavailable + const PausedDeployReason + const RevisionAnnotation + const RevisionHistoryAnnotation + func CloneAndAddLabel(labels map[string]string, labelKey, labelValue string) map[string]string + func CloneSelectorAndAddLabel(selector *metav1.LabelSelector, labelKey, labelValue string) *metav1.LabelSelector + func ComputeHash(template *clusterv1.MachineTemplateSpec) uint32 + func DeepHashObject(hasher hash.Hash, objectToWrite interface{}) + func DeploymentComplete(deployment *clusterv1.MachineDeployment, ...) bool + func EqualIgnoreHash(template1, template2 *clusterv1.MachineTemplateSpec) bool + func FilterActiveMachineSets(machineSets []*clusterv1.MachineSet) []*clusterv1.MachineSet + func FilterMachineSets(MSes []*clusterv1.MachineSet, filterFn filterMS) []*clusterv1.MachineSet + func FindNewMachineSet(deployment *clusterv1.MachineDeployment, msList []*clusterv1.MachineSet) *clusterv1.MachineSet + func FindOldMachineSets(deployment *clusterv1.MachineDeployment, msList []*clusterv1.MachineSet) ([]*clusterv1.MachineSet, []*clusterv1.MachineSet) + func FindOneActiveOrLatest(newMS *clusterv1.MachineSet, oldMSs []*clusterv1.MachineSet) *clusterv1.MachineSet + func GetActualReplicaCountForMachineSets(machineSets []*clusterv1.MachineSet) int32 + func GetAvailableReplicaCountForMachineSets(machineSets []*clusterv1.MachineSet) int32 + func GetDesiredReplicasAnnotation(ms *clusterv1.MachineSet) (int32, bool) + func GetProportion(ms *clusterv1.MachineSet, d clusterv1.MachineDeployment, ...) int32 + func GetReadyReplicaCountForMachineSets(machineSets []*clusterv1.MachineSet) int32 + func GetReplicaCountForMachineSets(machineSets []*clusterv1.MachineSet) int32 + func IsRollingUpdate(deployment *clusterv1.MachineDeployment) bool + func IsSaturated(deployment *clusterv1.MachineDeployment, ms *clusterv1.MachineSet) bool + func MaxRevision(allMSs []*clusterv1.MachineSet) int64 + func MaxSurge(deployment clusterv1.MachineDeployment) int32 + func MaxUnavailable(deployment clusterv1.MachineDeployment) int32 + func NewMSNewReplicas(deployment *clusterv1.MachineDeployment, allMSs []*clusterv1.MachineSet, ...) (int32, error) + func ReplicasAnnotationsNeedUpdate(ms *clusterv1.MachineSet, desiredReplicas, maxReplicas int32) bool + func ResolveFenceposts(maxSurge, maxUnavailable *intstrutil.IntOrString, desired int32) (int32, int32, error) + func Revision(obj runtime.Object) (int64, error) + func SetDeploymentRevision(deployment *clusterv1.MachineDeployment, revision string) bool + func SetNewMachineSetAnnotations(deployment *clusterv1.MachineDeployment, newMS *clusterv1.MachineSet, ...) bool + func SetReplicasAnnotations(ms *clusterv1.MachineSet, desiredReplicas, maxReplicas int32) bool + type MachineSetsByCreationTimestamp []*clusterv1.MachineSet + func (o MachineSetsByCreationTimestamp) Len() int + func (o MachineSetsByCreationTimestamp) Less(i, j int) bool + func (o MachineSetsByCreationTimestamp) Swap(i, j int) + type MachineSetsBySizeNewer []*clusterv1.MachineSet + func (o MachineSetsBySizeNewer) Len() int + func (o MachineSetsBySizeNewer) Less(i, j int) bool + func (o MachineSetsBySizeNewer) Swap(i, j int) + type MachineSetsBySizeOlder []*clusterv1.MachineSet + func (o MachineSetsBySizeOlder) Len() int + func (o MachineSetsBySizeOlder) Less(i, j int) bool + func (o MachineSetsBySizeOlder) Swap(i, j int)