Versions in this module Expand all Collapse all v1 v1.16.3 Oct 23, 2019 Changes in this version + const DesiredReplicasAnnotation + const FailedRSCreateReason + const FoundNewRSReason + const MaxReplicasAnnotation + const MinimumReplicasAvailable + const MinimumReplicasUnavailable + const NewRSAvailableReason + const NewReplicaSetReason + const PausedDeployReason + const ReplicaSetUpdatedReason + const ResumedDeployReason + const RevisionAnnotation + const RevisionHistoryAnnotation + const RollbackDone + const RollbackRevisionNotFound + const RollbackTemplateUnchanged + const TimedOutReason + func DeploymentComplete(deployment *apps.Deployment, newStatus *apps.DeploymentStatus) bool + func DeploymentProgressing(deployment *apps.Deployment, newStatus *apps.DeploymentStatus) bool + func DeploymentTimedOut(deployment *apps.Deployment, newStatus *apps.DeploymentStatus) bool + func EqualIgnoreHash(template1, template2 *v1.PodTemplateSpec) bool + func FindActiveOrLatest(newRS *apps.ReplicaSet, oldRSs []*apps.ReplicaSet) *apps.ReplicaSet + func FindNewReplicaSet(deployment *apps.Deployment, rsList []*apps.ReplicaSet) *apps.ReplicaSet + func FindOldReplicaSets(deployment *apps.Deployment, rsList []*apps.ReplicaSet) ([]*apps.ReplicaSet, []*apps.ReplicaSet) + func GetActualReplicaCountForReplicaSets(replicaSets []*apps.ReplicaSet) int32 + func GetAllReplicaSets(deployment *apps.Deployment, c appsclient.AppsV1Interface) ([]*apps.ReplicaSet, []*apps.ReplicaSet, *apps.ReplicaSet, error) + func GetAvailableReplicaCountForReplicaSets(replicaSets []*apps.ReplicaSet) int32 + func GetDeploymentCondition(status apps.DeploymentStatus, condType apps.DeploymentConditionType) *apps.DeploymentCondition + func GetDesiredReplicasAnnotation(rs *apps.ReplicaSet) (int32, bool) + func GetNewReplicaSet(deployment *apps.Deployment, c appsclient.AppsV1Interface) (*apps.ReplicaSet, error) + func GetOldReplicaSets(deployment *apps.Deployment, c appsclient.AppsV1Interface) ([]*apps.ReplicaSet, []*apps.ReplicaSet, error) + func GetProportion(rs *apps.ReplicaSet, d apps.Deployment, ...) int32 + func GetReadyReplicaCountForReplicaSets(replicaSets []*apps.ReplicaSet) int32 + func GetReplicaCountForReplicaSets(replicaSets []*apps.ReplicaSet) int32 + func HasProgressDeadline(d *apps.Deployment) bool + func HasRevisionHistoryLimit(d *apps.Deployment) bool + func IsRollingUpdate(deployment *apps.Deployment) bool + func IsSaturated(deployment *apps.Deployment, rs *apps.ReplicaSet) bool + func LastRevision(allRSs []*apps.ReplicaSet) int64 + func ListPods(deployment *apps.Deployment, rsList []*apps.ReplicaSet, getPodList podListFunc) (*v1.PodList, error) + func ListReplicaSets(deployment *apps.Deployment, getRSList RsListFunc) ([]*apps.ReplicaSet, error) + func MaxRevision(allRSs []*apps.ReplicaSet) int64 + func MaxSurge(deployment apps.Deployment) int32 + func MaxUnavailable(deployment apps.Deployment) int32 + func MinAvailable(deployment *apps.Deployment) int32 + func NewDeploymentCondition(condType apps.DeploymentConditionType, status v1.ConditionStatus, ...) *apps.DeploymentCondition + func NewRSNewReplicas(deployment *apps.Deployment, allRSs []*apps.ReplicaSet, newRS *apps.ReplicaSet) (int32, error) + func RemoveDeploymentCondition(status *apps.DeploymentStatus, condType apps.DeploymentConditionType) + func ReplicaSetToDeploymentCondition(cond apps.ReplicaSetCondition) apps.DeploymentCondition + func ReplicasAnnotationsNeedUpdate(rs *apps.ReplicaSet, desiredReplicas, maxReplicas int32) bool + func ResolveFenceposts(maxSurge, maxUnavailable *intstrutil.IntOrString, desired int32) (int32, int32, error) + func Revision(obj runtime.Object) (int64, error) + func SetDeploymentAnnotationsTo(deployment *apps.Deployment, rollbackToRS *apps.ReplicaSet) + func SetDeploymentCondition(status *apps.DeploymentStatus, condition apps.DeploymentCondition) + func SetDeploymentRevision(deployment *apps.Deployment, revision string) bool + func SetFromReplicaSetTemplate(deployment *apps.Deployment, template v1.PodTemplateSpec) *apps.Deployment + func SetNewReplicaSetAnnotations(deployment *apps.Deployment, newRS *apps.ReplicaSet, newRevision string, ...) bool + func SetReplicasAnnotations(rs *apps.ReplicaSet, desiredReplicas, maxReplicas int32) bool + func WaitForObservedDeployment(getDeploymentFunc func() (*apps.Deployment, error), desiredGeneration int64, ...) error + type RsListFunc func(string, metav1.ListOptions) ([]*apps.ReplicaSet, error) + func RsListFromClient(c appsclient.AppsV1Interface) RsListFunc