-
Notifications
You must be signed in to change notification settings - Fork 38
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
[64][PlacementStrategy] Expand and replace Timeout #100
[64][PlacementStrategy] Expand and replace Timeout #100
Conversation
c881171
to
5ec069d
Compare
// Default is that no failures are tolerated. | ||
// +kubebuilder:validation:Maximum=100 | ||
// +optional | ||
MaxFailedPercent uint8 `json:"maxFailedPercent,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.
I believe the name should be maxFailures and better to have type as intstr.IntOrString to allow percentage and numbers with validation as below.
// +kubebuilder:validation:Pattern="^((100|[0-9]{1,2})%|[0-9]+)$"
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.
Would that be similar to ClustersPerDecisionGroup
where it's either a number of clusters or a percentage of clusters? If so, that sounds good to me.
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, similar to ClustersPerDecisionGroup
8fe4a3c
to
bee0abf
Compare
Replace `Timeout` with `MinSuccessTime`, `ProgressDeadline`, and `MaxFailedPercent`. Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
bee0abf
to
5a0fcc6
Compare
Sounds good |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhaiducek, qiujian16 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
98c4b43
into
open-cluster-management-io:main
Replace
Timeout
withMinSuccessTime
,ProgressDeadline
, andMaxFailedPercent
.Notes:
SuccessDeadline
toProgressDeadline
and, not seeing opposition to it, I made the change