-
Notifications
You must be signed in to change notification settings - Fork 27
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
interface: improve API based on feedbacks #394
Conversation
Hi Ryan! I think we might need to re-generate the manifests here as well. |
be073bc
to
235c52a
Compare
235c52a
to
08f4c18
Compare
e002c1c
to
a53ce1c
Compare
a6817f8
to
82701bd
Compare
type RollingUpdateConfig struct { | ||
// The maximum number of clusters that can be unavailable during the rolling update | ||
// comparing to the desired number of clusters. | ||
// The desired number equal to the `NumberOfClusters` field when the placement type is `PickN`. |
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.
// The desired number equal to the `NumberOfClusters` field when the placement type is `PickN`. | |
// The desired number equals to the `NumberOfClusters` field when the placement type is `PickN`. |
// The maximum number of clusters that can be unavailable during the rolling update | ||
// comparing to the desired number of clusters. | ||
// The desired number equal to the `NumberOfClusters` field when the placement type is `PickN`. | ||
// The desired number equal to the number of clusters scheduler selected when the placement type is `PickAll`. |
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.
// The desired number equal to the number of clusters scheduler selected when the placement type is `PickAll`. | |
// The desired number equals to the number of clusters scheduler selected when the placement type is `PickAll`. |
BindingStateScheduled BindingState = "Scheduled" | ||
|
||
// BindingStateBound means the binding is bound to the target cluster. | ||
BindingStateBound BindingState = "Bound" | ||
|
||
// BindingStateUnScheduled means the binding is not scheduled on to the target cluster anymore. | ||
BindingStateUnScheduled BindingState = "UnScheduled" |
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.
hi ryan, could you clarify that, scheduled = creating, bound = active, unscheduled = deleting?
is my understanding correct?
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.
yes
MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"` | ||
|
||
// The maximum number of clusters that can be scheduled above the desired number of clusters. | ||
// The desired number equal to the `NumberOfClusters` field when the placement type is `PickN`. |
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.
// The desired number equal to the `NumberOfClusters` field when the placement type is `PickN`. | |
// The desired number equals to the `NumberOfClusters` field when the placement type is `PickN`. |
|
||
// The maximum number of clusters that can be scheduled above the desired number of clusters. | ||
// The desired number equal to the `NumberOfClusters` field when the placement type is `PickN`. | ||
// The desired number equal to the number of clusters scheduler selected when the placement type is `PickAll`. |
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.
// The desired number equal to the number of clusters scheduler selected when the placement type is `PickAll`. | |
// The desired number equals to the number of clusters scheduler selected when the placement type is `PickAll`. |
// has passed after the resources are applied to the target cluster successfully. | ||
// Default is 60. | ||
// +optional | ||
UnavailablePeriodSeconds *int `json:"waitBetweenRollingPeriodSeconds,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.
UnavailablePeriodSeconds *int `json:"waitBetweenRollingPeriodSeconds,omitempty"` | |
UnavailablePeriodSeconds *int `json:"unavailablePeriodSeconds,omitempty"` |
Co-authored-by: Zhiying Lin <[email protected]>
Co-authored-by: Zhiying Lin <[email protected]>
Co-authored-by: Zhiying Lin <[email protected]>
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.
Accepted minor changes from Zhiying on UnScheduled -> Unscheduled and comments.
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.
LGTM ;) Merge to unblock progress.
Description of your changes
Update the API based on the design feedbacks.
Fixes #
I have:
make reviewable
to ensure this PR is ready for review.How has this code been tested
Special notes for your reviewer