# Functions
No description provided by the author
No description provided by the author
No description provided by the author
CheckPodSpecChange checkPodSpecChange indicates if the rollout spec has changed indicating that the rollout needs to reset the currentStepIndex to zero.
CheckStableRSExists checks if the stableRS exists and is different than the newRS.
No description provided by the author
FindActiveOrLatest returns the only active or the latest replica set in case there is at most one active replica set.
FindNewReplicaSet 找新 RS 列表, 一般来说,通过 podTemplateHash作为label来匹配.
FindOldReplicaSets returns the old replica sets targeted by the given Rollout, with the given slice of RSes.
No description provided by the author
GetActualReplicaCountForReplicaSets 返回所有 所有RS的实际副本数.
GetAvailableReplicaCountForReplicaSets returns the number of available pods corresponding to the given replica sets.
GetCanaryReplicasOrWeight either returns a static set of replicas or a weight percentage.
GetCurrentCanaryStep returns the current canary step.
GetCurrentSetWeight grabs the current setWeight used by the rollout by iterating backwards from the current step until it finds a setWeight step.
GetOtherRSs the function goes through a list of ReplicaSets and returns a list of RS that are not the new or stable RS.
GetPodsOwnedByReplicaSet returns a list of pods owned by the given replicaset.
GetPodTemplateHash returns the rollouts-pod-template-hash value from a ReplicaSet's labels.
GetReadyReplicaCountForReplicaSets returns the number of ready pods corresponding to the given replica sets.
GetReplicaCountForReplicaSets returns the sum of Replicas of the given replica sets.
No description provided by the author
No description provided by the author
GetStableRS finds the stable RS using the RS's RolloutUniqueLabelKey and the stored StableRS in the rollout status.
No description provided by the author
No description provided by the author
HasScaleDownDeadline returns whether or not the given ReplicaSet is annotated with a scale-down delay.
No description provided by the author
IsReplicaSetAvailable returns if a ReplicaSet is scaled up and its ready count is >= desired count 当前 RS 是否 ready.
IsStillReferenced returns if the given ReplicaSet is still being referenced by any of the current, stable, blue-green active references.
MaxRevision finds the highest revision in the replica sets.
MaxSurge 最大(相比Rolling预期副本数)多出来的副本数.
MaxUnavailable 最大不可用副本数.
No description provided by the author
No description provided by the author
ParseExistingPodMetadata returns the existing podMetadata which was injected to the ReplicaSet based on examination of rollout.argoproj.io/ephemeral-metadata annotation on the ReplicaSet.
PodTemplateEqualIgnoreHash returns true if two given podTemplateSpec are equal, ignoring the diff in value of Labels[pod-template-hash] We ignore pod-template-hash because: 1.
PodTemplateOrStepsChanged detects if there is a change in either the pod template, or canary steps.
No description provided by the author
ResetCurrentStepIndex resets the index back to zero unless there are no steps.
Revision returns the revision number of the input object.
SyncEphemeralPodMetadata will inject the desired pod metadata to the ObjectMeta as well as remove previously injected pod metadata which is no longer desired.
SyncReplicaSetEphemeralPodMetadata injects the desired pod metadata to the ReplicaSet, and removes previously injected metadata (based on the rollout.argoproj.io/ephemeral-metadata annotation) if it is no longer desired.
No description provided by the author
# Constants
EphemeralMetadataAnnotation denotes pod metadata which are ephemerally injected to canary/stable pods.
# Type aliases
ReplicaSetsByRevisionNumber sorts a list of ReplicaSet by revision timestamp, using their creation timestamp as a tie breaker.