-
Notifications
You must be signed in to change notification settings - Fork 298
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
WIP: Added support for performance profile status #4020
base: main
Are you sure you want to change the base?
Conversation
This commit includes the implementation of this PR on the hypershift side: openshift/enhancements#1619 Up until now, there was no defined resolution over how PerformanceProfile status conditions with the status of the different components created from the PerformanceProfile (MachineConfig, KubeletConfig, Tuned) are handled and exposed. To resolve this, a custom ConfigMap is added and will be used as a middleware object. It will hold the updated status populated by the performance profile controller and will be watched by the NodePool controller, which will calculate an overview of the current status provided and reflect it under NodePool.status.condition. The resolution described above consist of the following changes: * Added a new condition "PerformanceProfileAppliedSuccessfully" to the NodePool conditions API. * Added a watch to the specific performance profile status ConfigMap object that will trigger the reconcile loop. * Added the HandlePerformanceProfileStatus function to calculate and set the PerformanceProfileAppliedSuccessfully based on the possible performance profile statuses (available, progressing and degraded). Signed-off-by: Ronny Baturov <rbaturov@redhat.com>
Signed-off-by: Ronny Baturov <rbaturov@redhat.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rbaturov The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@rbaturov: The following tests 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. |
Where does the node tuning operator usually put this information? Can the NodePool controller read it directly from there, instead of using a middleware object? |
In NTO on OCP, we have |
Sorry if these are obvious questions, but I am new - using proxy objects to funnel state in a distributed system can have a lot of downsides w.r.t. consistency, especially around outages, as etcd has no transactions and no way to keep objects in sync.
Are
Why? |
Yes performance profile are cluster scoped.
He doesn't have RBAC permissions for that |
This PR includes the implementation of this PR on the hypershift side:
openshift/enhancements#1619
Up until now, there was no defined resolution over how PerformanceProfile
status conditions with the status of the different components created
from the PerformanceProfile (MachineConfig, KubeletConfig, Tuned) are handled and exposed.
To resolve this, a custom ConfigMap is added and will be used as a middleware object.
It will hold the updated status populated by the performance profile controller
and will be watched by the NodePool controller, which will calculate an overview
of the current status provided and reflect it under NodePool.status.condition.
The resolution described above consist of the following changes: