-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change v1beta1 apis #183
Change v1beta1 apis #183
Conversation
api/v1beta1/rollout_types.go
Outdated
// - replicas: 2 | ||
// This means constructing end-to-end grayscale environment, | ||
// grayscale instance 2, where the traffic policy is trafficRouting | ||
TrafficRouting string `json:"trafficRouting,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TrafficRouting string should be a field in CanaryStrategy
api/v1beta1/rollout_types.go
Outdated
// TrafficRoutings hosts all the supported service meshes supported to enable more fine-grained traffic routing | ||
// and current only support one TrafficRouting | ||
TrafficRoutings []v1alpha1.TrafficRoutingRef `json:"trafficRoutings,omitempty"` | ||
Batches []BatchStrategy `json:"batches,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Batches should be pointer to BatchStrategy, and in BatchStrategy , one can define replicas for each batches (maybe a field called BatchStep), and other strategy configuration
@@ -39,10 +39,6 @@ const ( | |||
// Users can use RolloutIDLabel and RolloutBatchIDLabel to select the pods that are upgraded in some certain batch and release. | |||
RolloutBatchIDLabel = "rollouts.kruise.io/rollout-batch-id" | |||
|
|||
// RollbackInBatchAnnotation is set to rollout annotations. | |||
// RollbackInBatchAnnotation allow use disable quick rollback, and will roll back in batch style. | |||
RollbackInBatchAnnotation = "rollouts.kruise.io/rollback-in-batch" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this label removed?
api/v1beta1/rollout_types.go
Outdated
@@ -124,6 +105,29 @@ type CanaryStrategy struct { | |||
PatchPodTemplateMetadata *PatchPodTemplateMetadata `json:"patchPodTemplateMetadata,omitempty"` | |||
} | |||
|
|||
type BatchStrategy struct { | |||
BatchStep []BatchStep `json:"batchStep"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just name it steps in the json?
// TrafficRoutings hosts all the supported service meshes supported to enable more fine-grained traffic routing | ||
// and current only support one TrafficRouting | ||
TrafficRoutings []v1alpha1.TrafficRoutingRef `json:"trafficRoutings,omitempty"` | ||
Batches *BatchStrategy `json:"batches,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
batches -> Batch ?
Ⅰ. Describe what this PR does
Ⅱ. Does this pull request fix one issue?
Ⅲ. Special notes for reviews