# Functions

DurationFromInt creates duration in seconds from int value.
DurationFromString creates duration from string value must be a string representation of an int with optional time unit (see time.ParseDuration).

# Constants

CanarySpecRef indicates the RS template should be pulled from the newRS's template.
DefaultReplicaSetScaleDownDeadlineAnnotationKey is the default key attached to an old stable ReplicaSet after the rollout transitioned to a new version.
DefaultRolloutUniqueLabelKey is the default key of the selector that is added to existing ReplicaSets (and label key that is added to its pods) to prevent the existing ReplicaSets to select new pods (and old pods being select by new ReplicaSet).
InvalidSpec 表示 Rollout 的 Spec 不合法,在我们的场景下不会出现,因为Spec校验回同步进行,并直接通过接口返回.
LabelKeyControllerInstanceID is the label the controller uses for the rollout, experiment, analysis segregation between controllers.
Latest tells the Rollout to get the pod template hash from the latest ReplicaSet.
PauseReasonCanaryPauseStep pause rollout for canary pause step.
PauseReasonInconclusiveAnalysis pauses rollout when rollout has an inconclusive analysis run.
No description provided by the author
No description provided by the author
RolloutAvailable means the rollout is available, ie.
RolloutCanaryStepIndexLabel indicates which step created this analysisRun.
RolloutCompleted 表示 Rollout 完成,达到了预期的 Revision 并且不处于任何中间状态.
RolloutHealthy 表示 Rollout 完成,且副本数达到预期 且 所有 pod 可接受流量(不确定有没有判定 minReadySecond).
RolloutPaused 处于 Pause 状态,该状态一定是中间状态.
RolloutPhaseDegraded indicates a rollout is degraded (e.g.
RolloutPhaseHealthy indicates a rollout is healthy.
RolloutPhasePaused indicates a rollout is not yet healthy and will not make progress until unpaused.
RolloutPhaseProgressing indicates a rollout is not yet healthy but still making progress towards a healthy state.
RolloutProgressing Rollout 处于中间状态,一般是新RS被创建,新pod正在扩容中,或老pod正在缩容中。.
RolloutReplicaFailure ReplicaFailure is added in a deployment when one of its pods fails to be created or deleted.
RolloutTypeBackgroundRunLabel indicates that the analysisRun was created in Background to an execution.
RolloutTypeLabel indicates how the rollout created the analysisRun.
RolloutTypePostPromotionLabel indicates that the analysisRun was created after the active service promotion.
RolloutTypePrePromotionLabel indicates that the analysisRun was created before the active service promotion.
RolloutTypeStepLabel indicates that the analysisRun was created as a canary step.
Stable tells the Rollout to get the pod template hash from the stable ReplicaSet.
StableSpecRef indicates the RS template should be pulled from the stableRS's template.

# Structs

AnalysisRunStrategy configuration for the analysis runs and experiments to retain.
AntiAffinity defines which inter-pod scheduling rule to use for anti-affinity injection.
ArgumentValueFrom defines references to fields within resources to grab for the value (i.e.
No description provided by the author
CanaryStep defines a step of a canary deployment.
No description provided by the author
No description provided by the author
ObjectRef holds a references to the Kubernetes object.
PauseCondition the reason for a pause and when it started.
PingPongSpec holds the ping and pong service name.
PodTemplateMetadata extra labels to add to the template.
PreferredDuringSchedulingIgnoredDuringExecution defines the weight of the anti-affinity injection.
RequiredDuringSchedulingIgnoredDuringExecution defines inter-pod scheduling rule to be RequiredDuringSchedulingIgnoredDuringExecution.
Rollout is a specification for a Rollout resource.
RolloutCondition describes the state of a rollout at a certain point.
RolloutList is a list of Rollout resources.
RolloutPause defines a pause stage for a rollout.
RolloutSpec is the spec for a Rollout resource.
RolloutStatus is the status for a Rollout resource.
RolloutStrategy defines strategy to apply during next rollout.
SetCanaryScale defines how to scale the newRS without changing traffic weight.
No description provided by the author
StringMatch Used to define what type of matching we will use exact, prefix, or regular expression.
No description provided by the author

# Interfaces

RolloutInterface has methods to work with Rollout resources.
RolloutsGetter has a method to return a RolloutInterface.

# Type aliases

PauseReason reasons that the rollout can pause.
No description provided by the author
ReplicaSetSpecRef defines which RS that the experiment's template will use.
RolloutConditionType defines the conditions of Rollout.
RolloutPhase are a set of phases that this rollout.
ValueFromPodTemplateHash indicates which ReplicaSet pod template pod hash to use.