Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the apps v1alpha1 API group +kubebuilder:object:generate=true +groupName=rollouts.kruise.io
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type BatchRelease
- type BatchReleaseBatchStateType
- type BatchReleaseCanaryStatus
- type BatchReleaseList
- type BatchReleaseSpec
- type BatchReleaseStatus
- type CanaryStatus
- type CanaryStep
- type CanaryStepState
- type CanaryStrategy
- type DeploymentReleaseStrategyType
- type IngressTrafficRouting
- type ObjectRef
- type ObjectRefType
- type ReleaseBatch
- type ReleasePlan
- type ReleaseStrategyType
- type Rollout
- type RolloutCondition
- type RolloutConditionType
- type RolloutList
- type RolloutPause
- type RolloutPhase
- type RolloutSpec
- type RolloutStatus
- type RolloutStrategy
- type RolloutStrategyType
- type TrafficRouting
- type WorkloadRef
Constants ¶
const ( WorkloadRefType = "workloadRef" RevisionRefType = "revisionRef" )
const ( // RolloutConditionProgressing means the rollout is progressing. Progress for a rollout is // considered when a new replica set is created or adopted, when pods scale // up or old pods scale down, or when the services are updated. Progress is not estimated // for paused rollouts. RolloutConditionProgressing RolloutConditionType = "Progressing" // Progressing Reason ProgressingReasonInitializing = "Initializing" ProgressingReasonInRolling = "InRolling" ProgressingReasonFinalising = "Finalising" ProgressingReasonSucceeded = "Succeeded" ProgressingReasonCancelling = "Cancelling" ProgressingReasonCanceled = "Canceled" ProgressingReasonPaused = "Paused" // Terminating condition RolloutConditionTerminating RolloutConditionType = "Terminating" // Terminating Reason TerminatingReasonInTerminating = "InTerminating" TerminatingReasonCompleted = "Completed" )
These are valid conditions of a rollout.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "rollouts.kruise.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme SchemeGroupVersion = GroupVersion )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
type BatchRelease ¶
type BatchRelease struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec BatchReleaseSpec `json:"spec,omitempty"`
Status BatchReleaseStatus `json:"status,omitempty"`
}
func (*BatchRelease) DeepCopy ¶
func (in *BatchRelease) DeepCopy() *BatchRelease
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchRelease.
func (*BatchRelease) DeepCopyInto ¶
func (in *BatchRelease) DeepCopyInto(out *BatchRelease)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BatchRelease) DeepCopyObject ¶
func (in *BatchRelease) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BatchReleaseBatchStateType ¶
type BatchReleaseBatchStateType string
const ( // UpgradingBatchState indicates that current batch is at upgrading pod state UpgradingBatchState BatchReleaseBatchStateType = "Upgrading" // VerifyingBatchState indicates that current batch is at verifying whether it's ready state VerifyingBatchState BatchReleaseBatchStateType = "Verifying" // ReadyBatchState indicates that current batch is at batch ready state ReadyBatchState BatchReleaseBatchStateType = "Ready" )
type BatchReleaseCanaryStatus ¶
type BatchReleaseCanaryStatus struct {
// CurrentBatchState indicates the release state of the current batch.
CurrentBatchState BatchReleaseBatchStateType `json:"batchState,omitempty"`
// The current batch the rollout is working on/blocked, it starts from 0
CurrentBatch int32 `json:"currentBatch"`
// BatchReadyTime is the ready timestamp of the current batch or the last batch.
// This field is updated once a batch ready, and the batches[x].pausedSeconds
// relies on this field to calculate the real-time duration.
BatchReadyTime *metav1.Time `json:"batchReadyTime,omitempty"`
// UpdatedReplicas is the number of upgraded Pods.
UpdatedReplicas int32 `json:"updatedReplicas,omitempty"`
// UpdatedReadyReplicas is the number upgraded Pods that have a Ready Condition.
UpdatedReadyReplicas int32 `json:"updatedReadyReplicas,omitempty"`
}
func (*BatchReleaseCanaryStatus) DeepCopy ¶
func (in *BatchReleaseCanaryStatus) DeepCopy() *BatchReleaseCanaryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchReleaseCanaryStatus.
func (*BatchReleaseCanaryStatus) DeepCopyInto ¶
func (in *BatchReleaseCanaryStatus) DeepCopyInto(out *BatchReleaseCanaryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BatchReleaseList ¶
type BatchReleaseList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []BatchRelease `json:"items"`
}
BatchReleaseList contains a list of BatchRelease +kubebuilder:object:root=true
func (*BatchReleaseList) DeepCopy ¶
func (in *BatchReleaseList) DeepCopy() *BatchReleaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchReleaseList.
func (*BatchReleaseList) DeepCopyInto ¶
func (in *BatchReleaseList) DeepCopyInto(out *BatchReleaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BatchReleaseList) DeepCopyObject ¶
func (in *BatchReleaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BatchReleaseSpec ¶
type BatchReleaseSpec struct {
// TargetRef contains the GVK and name of the workload that we need to upgrade to.
TargetRef ObjectRef `json:"targetReference"`
// ReleasePlan is the details on how to rollout the resources
ReleasePlan ReleasePlan `json:"releasePlan"`
}
BatchReleaseSpec defines how to describe an update between different compRevision
func (*BatchReleaseSpec) DeepCopy ¶
func (in *BatchReleaseSpec) DeepCopy() *BatchReleaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchReleaseSpec.
func (*BatchReleaseSpec) DeepCopyInto ¶
func (in *BatchReleaseSpec) DeepCopyInto(out *BatchReleaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BatchReleaseStatus ¶
type BatchReleaseStatus struct {
// Conditions represents the observed process state of each phase during executing the release plan.
Conditions []RolloutCondition `json:"conditions,omitempty"`
// CanaryStatus describes the state of the canary rollout.
CanaryStatus BatchReleaseCanaryStatus `json:"canaryStatus,omitempty"`
// StableRevision is the pod-template-hash of stable revision pod template.
StableRevision string `json:"stableRevision,omitempty"`
// UpdateRevision is the pod-template-hash of update revision pod template.
UpdateRevision string `json:"updateRevision,omitempty"`
// ObservedGeneration is the most recent generation observed for this BatchRelease.
// It corresponds to this BatchRelease's generation, which is updated on mutation
// by the API Server, and only if BatchRelease Spec was changed, its generation will increase 1.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// ObservedWorkloadReplicas is observed replicas of target referenced workload.
// This field is designed to deal with scaling event during rollout, if this field changed,
// it means that the workload is scaling during rollout.
ObservedWorkloadReplicas int32 `json:"observedWorkloadReplicas,omitempty"`
// Count of hash collisions for creating canary Deployment. The controller uses this
// field as a collision avoidance mechanism when it needs to create the name for the
// newest canary Deployment.
// +optional
CollisionCount *int32 `json:"collisionCount,omitempty"`
// ObservedReleasePlanHash is a hash code of observed itself releasePlan.Batches.
ObservedReleasePlanHash string `json:"observedReleasePlanHash,omitempty"`
// Phase is the release plan phase, which indicates the current state of release
// plan state machine in BatchRelease controller.
Phase RolloutPhase `json:"phase,omitempty"`
}
BatchReleaseStatus defines the observed state of a release plan
func (*BatchReleaseStatus) DeepCopy ¶
func (in *BatchReleaseStatus) DeepCopy() *BatchReleaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchReleaseStatus.
func (*BatchReleaseStatus) DeepCopyInto ¶
func (in *BatchReleaseStatus) DeepCopyInto(out *BatchReleaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CanaryStatus ¶
type CanaryStatus struct {
// observedWorkloadGeneration is the most recent generation observed for this Rollout ref workload generation.
ObservedWorkloadGeneration int64 `json:"observedWorkloadGeneration,omitempty"`
// RolloutHash from rollout.spec object
RolloutHash string `json:"rolloutHash,omitempty"`
// CanaryService holds the name of a service which selects pods with canary version and don't select any pods with stable version.
CanaryService string `json:"canaryService"`
// CanaryRevision is calculated by rollout based on podTemplateHash, and the internal logic flow uses
// It may be different from rs podTemplateHash in different k8s versions, so it cannot be used as service selector label
// +optional
CanaryRevision string `json:"canaryRevision"`
// pod template hash is used as service selector label
PodTemplateHash string `json:"podTemplateHash"`
// CanaryReplicas the numbers of canary revision pods
CanaryReplicas int32 `json:"canaryReplicas"`
// CanaryReadyReplicas the numbers of ready canary revision pods
CanaryReadyReplicas int32 `json:"canaryReadyReplicas"`
// CurrentStepIndex defines the current step of the rollout is on. If the current step index is null, the
// controller will execute the rollout.
// +optional
CurrentStepIndex int32 `json:"currentStepIndex"`
CurrentStepState CanaryStepState `json:"currentStepState"`
Message string `json:"message,omitempty"`
// The last time this step pods is ready.
LastUpdateTime *metav1.Time `json:"lastReadyTime,omitempty"`
}
CanaryStatus status fields that only pertain to the canary rollout
func (*CanaryStatus) DeepCopy ¶
func (in *CanaryStatus) DeepCopy() *CanaryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CanaryStatus.
func (*CanaryStatus) DeepCopyInto ¶
func (in *CanaryStatus) DeepCopyInto(out *CanaryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CanaryStep ¶
type CanaryStep struct {
// SetWeight sets what percentage of the canary pods should receive
Weight int32 `json:"weight,omitempty"`
// Replicas is the number of expected canary pods in this batch
// it can be an absolute number (ex: 5) or a percentage of total pods.
Replicas *intstr.IntOrString `json:"replicas,omitempty"`
// Pause defines a pause stage for a rollout, manual or auto
// +optional
Pause RolloutPause `json:"pause,omitempty"`
}
CanaryStep defines a step of a canary workload.
func (*CanaryStep) DeepCopy ¶
func (in *CanaryStep) DeepCopy() *CanaryStep
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CanaryStep.
func (*CanaryStep) DeepCopyInto ¶
func (in *CanaryStep) DeepCopyInto(out *CanaryStep)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CanaryStepState ¶
type CanaryStepState string
const ( CanaryStepStateUpgrade CanaryStepState = "StepUpgrade" CanaryStepStateTrafficRouting CanaryStepState = "StepTrafficRouting" CanaryStepStateMetricsAnalysis CanaryStepState = "StepMetricsAnalysis" CanaryStepStatePaused CanaryStepState = "StepPaused" CanaryStepStateReady CanaryStepState = "StepReady" CanaryStepStateCompleted CanaryStepState = "Completed" )
type CanaryStrategy ¶
type CanaryStrategy struct {
// Steps define the order of phases to execute release in batches(20%, 40%, 60%, 80%, 100%)
// +optional
Steps []CanaryStep `json:"steps,omitempty"`
// TrafficRoutings hosts all the supported service meshes supported to enable more fine-grained traffic routing
// todo current only support one
TrafficRoutings []*TrafficRouting `json:"trafficRoutings,omitempty"`
}
CanaryStrategy defines parameters for a Replica Based Canary
func (*CanaryStrategy) DeepCopy ¶
func (in *CanaryStrategy) DeepCopy() *CanaryStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CanaryStrategy.
func (*CanaryStrategy) DeepCopyInto ¶
func (in *CanaryStrategy) DeepCopyInto(out *CanaryStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentReleaseStrategyType ¶
type DeploymentReleaseStrategyType string
type IngressTrafficRouting ¶
type IngressTrafficRouting struct {
// Name refers to the name of an `Ingress` resource in the same namespace as the `Rollout`
Name string `json:"name"`
}
IngressTrafficRouting configuration for ingress controller to control traffic routing
func (*IngressTrafficRouting) DeepCopy ¶
func (in *IngressTrafficRouting) DeepCopy() *IngressTrafficRouting
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressTrafficRouting.
func (*IngressTrafficRouting) DeepCopyInto ¶
func (in *IngressTrafficRouting) DeepCopyInto(out *IngressTrafficRouting)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectRef ¶
type ObjectRef struct {
// WorkloadRef contains enough information to let you identify a workload for Rollout
// Batch release of the bypass
WorkloadRef *WorkloadRef `json:"workloadRef,omitempty"`
}
func (*ObjectRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectRef.
func (*ObjectRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectRefType ¶
type ObjectRefType string
type ReleaseBatch ¶
type ReleaseBatch struct {
// CanaryReplicas is the number of upgraded pods that should have in this batch.
// it can be an absolute number (ex: 5) or a percentage of workload replicas.
// batches[i].canaryReplicas should less than or equal to batches[j].canaryReplicas if i < j.
CanaryReplicas intstr.IntOrString `json:"canaryReplicas"`
// The wait time, in seconds, between instances batches, default = 0
// +optional
PauseSeconds int64 `json:"pauseSeconds,omitempty"`
}
ReleaseBatch is used to describe how each batch release should be
func (*ReleaseBatch) DeepCopy ¶
func (in *ReleaseBatch) DeepCopy() *ReleaseBatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseBatch.
func (*ReleaseBatch) DeepCopyInto ¶
func (in *ReleaseBatch) DeepCopyInto(out *ReleaseBatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReleasePlan ¶
type ReleasePlan struct {
// Batches is the details on each batch of the ReleasePlan.
//Users can specify their batch plan in this field, such as:
// batches:
// - canaryReplicas: 1 # batches 0
// - canaryReplicas: 2 # batches 1
// - canaryReplicas: 5 # batches 2
// Not that these canaryReplicas should be a non-decreasing sequence.
// +optional
Batches []ReleaseBatch `json:"batches"`
// All pods in the batches up to the batchPartition (included) will have
// the target resource specification while the rest still is the stable revision.
// This is designed for the operators to manually rollout
// Default is nil, which means no partition and will release all batches.
// BatchPartition start from 0.
// +optional
BatchPartition *int32 `json:"batchPartition,omitempty"`
// Paused the rollout, the release progress will be paused util paused is false.
// default is false
// +optional
Paused bool `json:"paused,omitempty"`
}
ReleasePlan fines the details of the release plan
func (*ReleasePlan) DeepCopy ¶
func (in *ReleasePlan) DeepCopy() *ReleasePlan
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleasePlan.
func (*ReleasePlan) DeepCopyInto ¶
func (in *ReleasePlan) DeepCopyInto(out *ReleasePlan)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReleaseStrategyType ¶
type ReleaseStrategyType string
ReleaseStrategyType defines strategies for pods rollout
type Rollout ¶
type Rollout struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec RolloutSpec `json:"spec,omitempty"`
Status RolloutStatus `json:"status,omitempty"`
}
Rollout is the Schema for the rollouts API
func (*Rollout) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rollout.
func (*Rollout) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Rollout) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RolloutCondition ¶
type RolloutCondition struct {
// Type of rollout condition.
Type RolloutConditionType `json:"type"`
// Phase of the condition, one of True, False, Unknown.
Status corev1.ConditionStatus `json:"status"`
// The last time this condition was updated.
LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
// Last time the condition transitioned from one status to another.
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
// The reason for the condition's last transition.
Reason string `json:"reason"`
// A human readable message indicating details about the transition.
Message string `json:"message"`
}
RolloutCondition describes the state of a rollout at a certain point.
func (*RolloutCondition) DeepCopy ¶
func (in *RolloutCondition) DeepCopy() *RolloutCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutCondition.
func (*RolloutCondition) DeepCopyInto ¶
func (in *RolloutCondition) DeepCopyInto(out *RolloutCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RolloutConditionType ¶
type RolloutConditionType string
RolloutConditionType defines the conditions of Rollout
const ( // VerifyingBatchReleaseCondition indicates the controller is verifying whether workload // is ready to do rollout. VerifyingBatchReleaseCondition RolloutConditionType = "Verifying" // PreparingBatchReleaseCondition indicates the controller is preparing something before executing // release plan, such as create canary deployment and record stable & canary revisions. PreparingBatchReleaseCondition RolloutConditionType = "Preparing" // ProgressingBatchReleaseCondition indicates the controller is executing release plan. ProgressingBatchReleaseCondition RolloutConditionType = "Progressing" // FinalizingBatchReleaseCondition indicates the canary state is completed, // and the controller is doing something, such as cleaning up canary deployment. FinalizingBatchReleaseCondition RolloutConditionType = "Finalizing" // TerminatingBatchReleaseCondition indicates the rollout is terminating when the // BatchRelease cr is being deleted or cancelled. TerminatingBatchReleaseCondition RolloutConditionType = "Terminating" // TerminatedBatchReleaseCondition indicates the BatchRelease cr can be deleted. TerminatedBatchReleaseCondition RolloutConditionType = "Terminated" // CancelledBatchReleaseCondition indicates the release plan is cancelled during rollout. CancelledBatchReleaseCondition RolloutConditionType = "Cancelled" // CompletedBatchReleaseCondition indicates the release plan is completed successfully. CompletedBatchReleaseCondition RolloutConditionType = "Completed" SucceededBatchReleaseConditionReason = "Succeeded" FailedBatchReleaseConditionReason = "Failed" )
type RolloutList ¶
type RolloutList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Rollout `json:"items"`
}
RolloutList contains a list of Rollout
func (*RolloutList) DeepCopy ¶
func (in *RolloutList) DeepCopy() *RolloutList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutList.
func (*RolloutList) DeepCopyInto ¶
func (in *RolloutList) DeepCopyInto(out *RolloutList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RolloutList) DeepCopyObject ¶
func (in *RolloutList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RolloutPause ¶
type RolloutPause struct {
// Duration the amount of time to wait before moving to the next step.
// +optional
Duration *int32 `json:"duration,omitempty"`
}
RolloutPause defines a pause stage for a rollout
func (*RolloutPause) DeepCopy ¶
func (in *RolloutPause) DeepCopy() *RolloutPause
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutPause.
func (*RolloutPause) DeepCopyInto ¶
func (in *RolloutPause) DeepCopyInto(out *RolloutPause)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RolloutPhase ¶
type RolloutPhase string
RolloutPhase are a set of phases that this rollout
const ( // RolloutPhaseInitial indicates a rollout is Initial RolloutPhaseInitial RolloutPhase = "Initial" // RolloutPhaseHealthy indicates a rollout is healthy RolloutPhaseHealthy RolloutPhase = "Healthy" // RolloutPhasePreparing indicates a rollout is preparing for next progress. RolloutPhasePreparing RolloutPhase = "Preparing" // RolloutPhaseProgressing indicates a rollout is not yet healthy but still making progress towards a healthy state RolloutPhaseProgressing RolloutPhase = "Progressing" // RolloutPhaseFinalizing indicates a rollout is finalizing RolloutPhaseFinalizing RolloutPhase = "Finalizing" // RolloutPhaseTerminating indicates a rollout is terminated RolloutPhaseTerminating RolloutPhase = "Terminating" // RolloutPhaseCompleted indicates a rollout is completed RolloutPhaseCompleted RolloutPhase = "Completed" // RolloutPhaseCancelled indicates a rollout is cancelled RolloutPhaseCancelled RolloutPhase = "Cancelled" )
type RolloutSpec ¶
type RolloutSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file
// ObjectRef indicates workload
ObjectRef ObjectRef `json:"objectRef"`
// rollout strategy
Strategy RolloutStrategy `json:"strategy"`
}
RolloutSpec defines the desired state of Rollout
func (*RolloutSpec) DeepCopy ¶
func (in *RolloutSpec) DeepCopy() *RolloutSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutSpec.
func (*RolloutSpec) DeepCopyInto ¶
func (in *RolloutSpec) DeepCopyInto(out *RolloutSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RolloutStatus ¶
type RolloutStatus struct {
// observedGeneration is the most recent generation observed for this Rollout.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// CanaryRevision the hash of the canary pod template
// +optional
//CanaryRevision string `json:"canaryRevision,omitempty"`
// StableRevision indicates the revision pods that has successfully rolled out
StableRevision string `json:"stableRevision,omitempty"`
// Conditions a list of conditions a rollout can have.
// +optional
Conditions []RolloutCondition `json:"conditions,omitempty"`
// Canary describes the state of the canary rollout
// +optional
CanaryStatus *CanaryStatus `json:"canaryStatus,omitempty"`
// +optional
//BlueGreenStatus *BlueGreenStatus `json:"blueGreenStatus,omitempty"`
// Phase is the rollout phase.
Phase RolloutPhase `json:"phase,omitempty"`
// Message provides details on why the rollout is in its current phase
Message string `json:"message,omitempty"`
}
RolloutStatus defines the observed state of Rollout
func (*RolloutStatus) DeepCopy ¶
func (in *RolloutStatus) DeepCopy() *RolloutStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutStatus.
func (*RolloutStatus) DeepCopyInto ¶
func (in *RolloutStatus) DeepCopyInto(out *RolloutStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RolloutStrategy ¶
type RolloutStrategy struct {
// Paused indicates that the Rollout is paused.
// Default value is false
Paused bool `json:"paused,omitempty"`
// +optional
Canary *CanaryStrategy `json:"canary,omitempty"`
}
RolloutStrategy defines strategy to apply during next rollout
func (*RolloutStrategy) DeepCopy ¶
func (in *RolloutStrategy) DeepCopy() *RolloutStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutStrategy.
func (*RolloutStrategy) DeepCopyInto ¶
func (in *RolloutStrategy) DeepCopyInto(out *RolloutStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RolloutStrategyType ¶
type RolloutStrategyType string
const ( RolloutStrategyCanary RolloutStrategyType = "canary" RolloutStrategyBlueGreen RolloutStrategyType = "blueGreen" )
type TrafficRouting ¶
type TrafficRouting struct {
// Service holds the name of a service which selects pods with stable version and don't select any pods with canary version.
Service string `json:"service"`
// Optional duration in seconds the traffic provider(e.g. nginx ingress controller) consumes the service, ingress configuration changes gracefully.
GracePeriodSeconds int32 `json:"gracePeriodSeconds,omitempty"`
// nginx, alb, istio etc.
Type string `json:"type"`
// Ingress holds Ingress specific configuration to route traffic, e.g. Nginx, Alb.
Ingress *IngressTrafficRouting `json:"ingress,omitempty"`
}
TrafficRouting hosts all the different configuration for supported service meshes to enable more fine-grained traffic routing
func (*TrafficRouting) DeepCopy ¶
func (in *TrafficRouting) DeepCopy() *TrafficRouting
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficRouting.
func (*TrafficRouting) DeepCopyInto ¶
func (in *TrafficRouting) DeepCopyInto(out *TrafficRouting)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadRef ¶
type WorkloadRef struct {
// API Version of the referent
APIVersion string `json:"apiVersion"`
// Kind of the referent
Kind string `json:"kind"`
// Name of the referent
Name string `json:"name"`
}
WorkloadRef holds a references to the Kubernetes object
func (*WorkloadRef) DeepCopy ¶
func (in *WorkloadRef) DeepCopy() *WorkloadRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadRef.
func (*WorkloadRef) DeepCopyInto ¶
func (in *WorkloadRef) DeepCopyInto(out *WorkloadRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.