# Functions
NewNegativeCondition creates a false condition type.
NewPositiveCondition creates a positive condition type.
# Constants
AllBatchFinishedEvent indicates that all batches are upgraded.
BatchFinalized.
BatchFinalizingState indicates that all the pods in the are available, we can move on to the next batch.
BatchInitialized.
BatchInitializingState still rolling the batch, the batch rolling is not completed yet.
BatchInRolled.
BatchInRollingState still rolling the batch, the batch rolling is not completed yet.
BatchReady.
BatchReadyState indicates that all the pods in the are upgraded and its state is ready.
BatchRolloutApprovedEvent indicates that we got the approval manually.
BatchRolloutContinueEvent indicates that we need to continue to upgrade the pods in the batch.
BatchRolloutFailed.
BatchRolloutFailedEvent indicates that we are waiting for the approval of the.
BatchRolloutFailedState indicates that the batch didn't get the manual or automatic approval.
BatchRolloutVerifyingEvent indicates that we are waiting for the approval of resume one batch.
BatchVerified.
BatchVerifyingState verifying if the application is ready to roll.
DecreaseFirstRolloutStrategyType indicates that we decrease the source resources first.
FinalisingState finalize the rolling, possibly clean up the old resources, adjust traffic.
FinalizeRolloutHook execute the webhook during the rollout finalizing phase.
FinishedOneBatchEvent indicates that we have successfully rolled out one batch.
GroupName of the CRDs.
IncreaseFirstRolloutStrategyType indicates that we increase the target resources first.
InitializedOneBatchEvent indicates that we have successfully rolled out one batch.
InitializeRolloutHook execute webhook during the rollout initializing phase.
InitializingState rollout is initializing all the new resources.
OneBatchAvailableEvent indicates that the batch resource is considered available this events comes after we have examine the pod readiness check and traffic shifting if needed.
PostBatchRolloutHook execute webhook after each batch rollout.
PreBatchRolloutHook execute webhook before each batch rollout.
RollingFailedEvent indicates that we encountered an unexpected error during upgrading and can't be retried.
RollingFinalizedEvent indicates that we have finalized the rollout which includes but not limited to the resource garbage collection.
RollingInBatchesState rolling out.
RollingInitializedEvent indicates that we have finished initializing all the workload resources.
RollingRetriableFailureEvent indicates that we encountered an unexpected but retriable error.
RollingSpecVerifiedEvent indicates that we have successfully verified that the rollout spec.
RolloutFailedState rollout is failed, the target replica is not reached we can not move forward anymore we will let the client to decide when or whether to revert.
RolloutInitialized means all the needed initialization work is done.
RolloutInProgress means we are upgrading resources.
RolloutSpecVerified indicates that the rollout spec matches the resource we have in the cluster.
RolloutSucceed means that the rollout is done.
RolloutSucceedState rollout successfully completed to match the desired target state.
VerifyingState verify that the rollout setting is valid and the controller can locate both the target and the source.
Version of the group of CRDs.
WorkloadModifiedEvent indicates that the res.
# Variables
AddToScheme adds the types in this group-version to the given scheme.
SchemeBuilder is used to add go types to the GroupVersionKind scheme.
SchemeGroupVersion is group version used to register these objects.
# Structs
CanaryMetric holds the reference to metrics used for canary analysis.
MetricsExpectedRange defines the range used for metrics validation.
PodSpecWorkload is the Schema for the PodSpec API +genclient:method=GetScale,verb=get,subresource=scale,result=k8s.io/api/autoscaling/v1.Scale +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/api/autoscaling/v1.Scale,result=k8s.io/api/autoscaling/v1.Scale +kubebuilder:resource:categories={oam} +kubebuilder:subresource:status.
PodSpecWorkloadList contains a list of PodSpecWorkload.
PodSpecWorkloadSpec defines the desired state of PodSpecWorkload.
PodSpecWorkloadStatus defines the observed state of PodSpecWorkload.
RolloutBatch is used to describe how the each batch rollout should be.
RolloutPlan fines the details of the rollout plan.
RolloutStatus defines the observed state of a rollout plan.
RolloutTrait is the Schema for the RolloutTrait API +kubebuilder:object:root=true +genclient +kubebuilder:subresource:status.
RolloutTraitList contains a list of RolloutTrait +kubebuilder:object:root=true +genclient.
RolloutTraitSpec defines the desired state of RolloutTrait.
RolloutWebhook holds the reference to external checks used for canary analysis.
RolloutWebhookPayload holds the info and metadata sent to webhooks.
# Type aliases
BatchRollingState is the sub state when the rollout is on the fly.
HookType can be pre, post or during rollout.
RollingState is the overall rollout state.
RolloutEvent is used to describe the events during rollout.
RolloutStrategyType defines strategies for pods rollout.