-
Notifications
You must be signed in to change notification settings - Fork 329
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
HOSTEDCP-1850: HyperShift operator: Allow setting Kube APIServer maximum requests inflight #4554
HOSTEDCP-1850: HyperShift operator: Allow setting Kube APIServer maximum requests inflight #4554
Conversation
@csrwng: This pull request references HOSTEDCP-1850 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng 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 |
@csrwng: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
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.
Small question, otherwise lgtm
@@ -771,6 +771,12 @@ func (r *DedicatedServingComponentSchedulerAndSizer) updateHostedCluster(ctx con | |||
delete(hc.Annotations, hyperv1.MachineHealthCheckTimeoutAnnotation) | |||
} | |||
} | |||
if sizeConfig.Effects != nil && sizeConfig.Effects.MaximumRequestsInflight != nil { | |||
hc.Annotations[hyperv1.KubeAPIServerMaximumRequestsInFlight] = fmt.Sprint(*sizeConfig.Effects.MaximumRequestsInflight) |
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.
It's there any kind of validation around the annotation content?
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 CR ensures that it is a number. As far as limiting the values for that number, I'm not sure that we know just yet what those limits should be. This is an API that is meant to be consumed by the service provider (ie. fleet manager), so I'm less worried about validation here.
… flight Adds support to the HyperShift operator for overriding default maximum requests in flight for Kubernetes API server. Adds fields to the ClusterSizingConfiguration CRD that allows setting values for these based on cluster size.
2cf6f82
to
1f621de
Compare
/lgtm |
[ART PR BUILD NOTIFIER] Distgit: hypershift |
What this PR does / why we need it:
Adds support to the HyperShift operator for overriding default maximum requests in flight for Kubernetes API server.
Adds fields to the ClusterSizingConfiguration CRD that allows setting values for these based on cluster size.
This is the hypershift operator half of #4488
Which issue(s) this PR fixes (optional, use
fixes #<issue_number>(, fixes #<issue_number>, ...)
format, where issue_number might be a GitHub issue, or a Jira story:Fixes #HOSTEDCP-1850
Checklist